mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
fix(Microsoft ToDo Node): Fix pagination issue when getting all items (#4222)
This commit is contained in:
parent
fd22b3fbdf
commit
4595b54e56
|
@ -55,6 +55,9 @@ export async function microsoftApiRequestAllItems(
|
||||||
do {
|
do {
|
||||||
responseData = await microsoftApiRequest.call(this, method, endpoint, body, query, uri);
|
responseData = await microsoftApiRequest.call(this, method, endpoint, body, query, uri);
|
||||||
uri = responseData['@odata.nextLink'];
|
uri = responseData['@odata.nextLink'];
|
||||||
|
if (uri && uri.includes('$top')) {
|
||||||
|
delete query['$top'];
|
||||||
|
}
|
||||||
returnData.push.apply(returnData, responseData[propertyName]);
|
returnData.push.apply(returnData, responseData[propertyName]);
|
||||||
} while (responseData['@odata.nextLink'] !== undefined);
|
} while (responseData['@odata.nextLink'] !== undefined);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue