fix(NocoDB Node): Fix pagination (#3081)

This commit is contained in:
Jonathan Bennetts 2022-04-01 17:11:18 +01:00 committed by GitHub
parent 7625421b81
commit 5f44b0dad5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;