All: Fixes #4313: Fixed OneDrive issue that would require a full resync every time (#4324)

pull/4306/head
Jonathan Heard 2021-01-08 17:07:03 +01:00 committed by GitHub
parent 3626714403
commit 5d1dc224ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -220,9 +220,8 @@ class FileApiDriverOneDrive {
};
const freshStartDelta = () => {
// Business Accounts are only allowed to make delta requests to the root. For some reason /delta gives an error for personal accounts and :/delta an error for business accounts
const accountProperties = this.api_.accountProperties_;
const url = (accountProperties.accountType === 'business') ? `/drives/${accountProperties.driveId}/root/delta` : `${this.makePath_(path)}:/delta`;
const url = `/drives/${accountProperties.driveId}/root/delta`;
const query = this.itemFilter_();
query.select += ',deleted';
return { url: url, query: query };