mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
* Ensure 'driveId' is set correctly when not using a Personal Account type
This commit is contained in:
parent
e374203dd2
commit
85c8a2e39f
1 changed files with 10 additions and 6 deletions
16
src/sync.d
16
src/sync.d
|
|
@ -7208,12 +7208,6 @@ class SyncEngine {
|
|||
OneDriveApi getCurrentDriveQuotaApiInstance;
|
||||
string driveId;
|
||||
|
||||
// Ensure that we have a valid driveId to query
|
||||
if (sourceDriveId.empty) {
|
||||
// No 'driveId' was provided, use the application default
|
||||
driveId = appConfig.defaultDriveId;
|
||||
}
|
||||
|
||||
// Issue #3115 - Validate sourceDriveId length
|
||||
// What account type is this?
|
||||
if (appConfig.accountType == "personal") {
|
||||
|
|
@ -7225,6 +7219,16 @@ class SyncEngine {
|
|||
// No sourceDriveId provided - use appConfig.defaultDriveId and validate that
|
||||
driveId = transformToLowerCase(testProvidedDriveIdForLengthIssue(appConfig.defaultDriveId));
|
||||
}
|
||||
} else {
|
||||
// This is not a personal account type
|
||||
// Ensure that we have a valid driveId to query
|
||||
if (sourceDriveId.empty) {
|
||||
// No 'driveId' was provided, use the application default
|
||||
driveId = appConfig.defaultDriveId;
|
||||
} else {
|
||||
// A 'driveId' was provided, use the provided 'sourceDriveId'
|
||||
driveId = sourceDriveId;
|
||||
}
|
||||
}
|
||||
|
||||
// Try and query the quota for the provided driveId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue