Fixed configuration issue for cloudsync

This commit is contained in:
frikky
2023-02-27 12:03:59 +01:00
parent cb04511a2a
commit dd0a04c1c7
+7 -4
View File
@@ -3696,12 +3696,15 @@ func remoteOrgJobController(org shuffle.Org, body []byte) error {
return err
}
org.SyncConfig.Interval = 0
org.SyncConfig.Apikey = ""
org.CloudSync = false
// Just in case
org, err = handleStopCloudSync(syncUrl, *org)
if err != nil {
log.Printf("[ERROR] Failed stopping cloud sync remotely: %s", err)
}
org.SyncConfig.Interval = 0
org.CloudSync = false
org.SyncConfig.Apikey = ""
startDate := time.Now().Unix()
org.SyncFeatures.Webhook = shuffle.SyncData{Active: false, Type: "trigger", Name: "Webhook", StartDate: startDate}