File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -741,10 +741,19 @@ class OneDriveApi {
741
741
}
742
742
743
743
JSONValue createSubscription (string notificationUrl, SysTime expirationDateTime) {
744
- string driveId = appConfig.getValueString( " drive_id " ) ;
744
+ string driveId;
745
745
string url = subscriptionUrl;
746
746
747
- // Create a resource item based on if we have a driveId
747
+ // What do we set for driveId
748
+ if (appConfig.getValueString(" drive_id" ).length) {
749
+ // Use the 'config' file option
750
+ driveId = appConfig.getValueString(" drive_id" );
751
+ } else {
752
+ // use appConfig.defaultDriveId
753
+ driveId = appConfig.defaultDriveId;
754
+ }
755
+
756
+ // Create a resource item based on if we have a driveId now configured
748
757
string resourceItem;
749
758
if (driveId.length) {
750
759
resourceItem = " /drives/" ~ driveId ~ " /root" ;
You can’t perform that action at this time.
0 commit comments