mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(Bubble Node): Fix pagination issue when returning all objects (#5483)
This commit is contained in:
parent
71cba06b7c
commit
1a20fd9f46
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue