mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-23 04:39:08 +00:00
🐛 OneDrive: Fix pagination (#2706)
This commit is contained in:
@@ -51,6 +51,9 @@ export async function microsoftApiRequestAllItems(this: IExecuteFunctions | ILoa
|
|||||||
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 (
|
} while (
|
||||||
responseData['@odata.nextLink'] !== undefined
|
responseData['@odata.nextLink'] !== undefined
|
||||||
|
|||||||
Reference in New Issue
Block a user