From 445cff3d45467e6e0586b2aeff22c741478773ee Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Wed, 15 Feb 2023 08:54:13 +0000 Subject: [PATCH] fix pagination issue --- packages/nodes-base/nodes/Bubble/GenericFunctions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Bubble/GenericFunctions.ts b/packages/nodes-base/nodes/Bubble/GenericFunctions.ts index b0f9cc3002164..0775a93e2cf52 100644 --- a/packages/nodes-base/nodes/Bubble/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Bubble/GenericFunctions.ts @@ -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);