mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -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;
|
let responseData;
|
||||||
qs.limit = 100;
|
qs.limit = 100;
|
||||||
|
qs.cursor = 0;
|
||||||
do {
|
do {
|
||||||
responseData = await bubbleApiRequest.call(this, method, endpoint, body, qs);
|
responseData = await bubbleApiRequest.call(this, method, endpoint, body, qs);
|
||||||
qs.cursor = responseData.cursor;
|
qs.cursor += qs.limit;
|
||||||
returnData.push.apply(returnData, responseData.response.results);
|
returnData.push.apply(returnData, responseData.response.results);
|
||||||
} while (responseData.response.remaining !== 0);
|
} while (responseData.response.remaining !== 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue