Skip to content

Commit

Permalink
fix(NocoDB Node): Fix pagination (#3081)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joffcom authored Apr 1, 2022
1 parent 7625421 commit 5f44b0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/nodes-base/nodes/NocoDB/GenericFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5f44b0d

Please sign in to comment.