mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-02 17:57:06 +02:00
🐛 OneDrive: Fix pagination (#2706)
This commit is contained in:
parent
9fc1d16e7c
commit
55139a4e6c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user