Skip to content

Commit

Permalink
All: Fixes #4313: Fixed OneDrive issue that would require a full resy…
Browse files Browse the repository at this point in the history
…nc every time (#4324)
  • Loading branch information
jonath92 authored Jan 8, 2021
1 parent 3626714 commit 5d1dc22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/lib/file-api-driver-onedrive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 5d1dc22

Please sign in to comment.