mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-23 18:41:48 -08:00
fix(NocoDB Node): Fix pagination (#3081)
This commit is contained in:
parent
7625421b81
commit
5f44b0dad5
|
@ -96,13 +96,12 @@ export async function apiRequestAllItems(this: IHookFunctions | IExecuteFunction
|
|||
|
||||
do {
|
||||
responseData = await apiRequest.call(this, method, endpoint, body, query);
|
||||
|
||||
returnData.push(...responseData);
|
||||
|
||||
query.offset += query.limit;
|
||||
|
||||
} while (
|
||||
responseData.length === 0
|
||||
responseData.length !== 0
|
||||
);
|
||||
|
||||
return returnData;
|
||||
|
|
Loading…
Reference in a new issue