mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-24 02:52:24 -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 {
|
do {
|
||||||
responseData = await apiRequest.call(this, method, endpoint, body, query);
|
responseData = await apiRequest.call(this, method, endpoint, body, query);
|
||||||
|
|
||||||
returnData.push(...responseData);
|
returnData.push(...responseData);
|
||||||
|
|
||||||
query.offset += query.limit;
|
query.offset += query.limit;
|
||||||
|
|
||||||
} while (
|
} while (
|
||||||
responseData.length === 0
|
responseData.length !== 0
|
||||||
);
|
);
|
||||||
|
|
||||||
return returnData;
|
return returnData;
|
||||||
|
|
Loading…
Reference in a new issue