Skip to content

Commit

Permalink
fix(Bubble Node): Fix pagination issue when returning all objects (#5483
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Joffcom authored Feb 16, 2023
1 parent 71cba06 commit 1a20fd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nodes-base/nodes/Bubble/GenericFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ export async function bubbleApiRequestAllItems(

let responseData;
qs.limit = 100;
qs.cursor = 0;
do {
responseData = await bubbleApiRequest.call(this, method, endpoint, body, qs);
qs.cursor = responseData.cursor;
qs.cursor += qs.limit;
returnData.push.apply(returnData, responseData.response.results);
} while (responseData.response.remaining !== 0);

Expand Down

0 comments on commit 1a20fd9

Please sign in to comment.