🐛 Fix bug with pagination on BigQuery node (#2511)

This commit is contained in:
Ricardo Espinoza 2021-12-02 17:38:14 -05:00 committed by GitHub
parent 0153beb8b1
commit 95a9019cbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;