fix(Asana Node): Fix issue with pagination (#11415)

This commit is contained in:
Jon 2024-10-28 09:58:00 +00:00 committed by GitHub
parent 12d218ea38
commit 04c075a46b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,6 +64,7 @@ export async function asanaApiRequestAllItems(
uri, uri,
); );
uri = get(responseData, 'next_page.uri'); uri = get(responseData, 'next_page.uri');
query = {}; // query is not needed once we have next_page.uri
returnData.push.apply(returnData, responseData.data as IDataObject[]); returnData.push.apply(returnData, responseData.data as IDataObject[]);
} while (responseData.next_page !== null); } while (responseData.next_page !== null);