fix: refs #6432 account sync fixes

This commit is contained in:
Juan Ferrer 2023-11-17 00:08:29 +01:00
parent 14eb14ad3f
commit c2e295f777
1 changed files with 4 additions and 4 deletions

View File

@ -122,10 +122,10 @@ class Controller extends Descriptor {
} }
onSync() { onSync() {
let params = { const params = {force: true};
password: this.syncPassword, if (this.shouldSyncPassword)
force: true params.password = this.syncPassword;
};
return this.$http.patch(`Accounts/${this.user.name}/sync`, params) return this.$http.patch(`Accounts/${this.user.name}/sync`, params)
.then(() => this.vnApp.showSuccess(this.$t('User synchronized!'))); .then(() => this.vnApp.showSuccess(this.$t('User synchronized!')));
} }