MOBILE-2992 user: Fix sync preferences

main
Albert Gasset 2019-05-28 12:34:33 +02:00
parent 39efa76f5f
commit 57b3ed23b2
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ export class CoreUserSyncProvider extends CoreSyncBaseProvider {
return this.userOffline.setPreference(preference.name, onlineValue, onlineValue, siteId); return this.userOffline.setPreference(preference.name, onlineValue, onlineValue, siteId);
} }
return this.userProvider.setUserPreference(name, preference.value, siteId).catch((error) => { return this.userProvider.setUserPreference(preference.name, preference.value, siteId).catch((error) => {
if (this.utils.isWebServiceError(error)) { if (this.utils.isWebServiceError(error)) {
warnings.push(this.textUtils.getErrorMessageFromError(error)); warnings.push(this.textUtils.getErrorMessageFromError(error));
} else { } else {