Merge pull request #1955 from albertgasset/MOBILE-2992

MOBILE-2992 user: Fix sync preferences
main
Juan Leyva 2019-05-28 12:48:53 +02:00 committed by GitHub
commit bbbe24fe28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {