mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -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 {
|
||||
responseData = await googleApiRequest.call(this, method, endpoint, body, query);
|
||||
query.pageToken = responseData['nextPageToken'];
|
||||
query.pageToken = responseData['pageToken'];
|
||||
returnData.push.apply(returnData, responseData[propertyName]);
|
||||
} while (
|
||||
responseData['nextPageToken'] !== undefined &&
|
||||
responseData['nextPageToken'] !== ''
|
||||
responseData['pageToken'] !== undefined &&
|
||||
responseData['pageToken'] !== ''
|
||||
);
|
||||
|
||||
return returnData;
|
||||
|
|
Loading…
Reference in a new issue