mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(NocoDB Node): Fix pagination (#3081)
This commit is contained in:
committed by
GitHub
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user