mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 OneDrive: Fix pagination (#2706)
This commit is contained in:
@@ -51,6 +51,9 @@ export async function microsoftApiRequestAllItems(this: IExecuteFunctions | ILoa
|
||||
do {
|
||||
responseData = await microsoftApiRequest.call(this, method, endpoint, body, query, uri);
|
||||
uri = responseData['@odata.nextLink'];
|
||||
if (uri && uri.includes('$top')) {
|
||||
delete query['$top'];
|
||||
}
|
||||
returnData.push.apply(returnData, responseData[propertyName]);
|
||||
} while (
|
||||
responseData['@odata.nextLink'] !== undefined
|
||||
|
||||
Reference in New Issue
Block a user