mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
🐛 Fix bug with pagination on BigQuery node (#2511)
This commit is contained in:
parent
0153beb8b1
commit
95a9019cbe
|
@ -56,11 +56,11 @@ export async function googleApiRequestAllItems(this: IExecuteFunctions | ILoadOp
|
||||||
|
|
||||||
do {
|
do {
|
||||||
responseData = await googleApiRequest.call(this, method, endpoint, body, query);
|
responseData = await googleApiRequest.call(this, method, endpoint, body, query);
|
||||||
query.pageToken = responseData['nextPageToken'];
|
query.pageToken = responseData['pageToken'];
|
||||||
returnData.push.apply(returnData, responseData[propertyName]);
|
returnData.push.apply(returnData, responseData[propertyName]);
|
||||||
} while (
|
} while (
|
||||||
responseData['nextPageToken'] !== undefined &&
|
responseData['pageToken'] !== undefined &&
|
||||||
responseData['nextPageToken'] !== ''
|
responseData['pageToken'] !== ''
|
||||||
);
|
);
|
||||||
|
|
||||||
return returnData;
|
return returnData;
|
||||||
|
|
Loading…
Reference in a new issue