mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Microsoft Excel Node): fix issue with pagination when getting all items (#4247)
This commit is contained in:
committed by
GitHub
parent
4595b54e56
commit
1067ec0f5b
@@ -53,6 +53,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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user