Skip to content

Commit

Permalink
🐛 Fix bug with pagination on BigQuery node (#2511)
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoE105 authored Dec 2, 2021
1 parent 0153beb commit 95a9019
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/nodes-base/nodes/Google/BigQuery/GenericFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 95a9019

Please sign in to comment.