fix(user/settings): Add theme server validations

This commit is contained in:
Berkeley Martinez
2018-01-29 11:26:24 -08:00
parent b8f8ea80cf
commit ae3ccdd672
6 changed files with 47 additions and 34 deletions

View File

@ -703,9 +703,7 @@ module.exports = function(User) {
);
return Promise.reject(err);
}
return this.update$({ theme })
.map({ updatedTo: theme })
.toPromise();
return this.update$({ theme }).toPromise();
};
// deprecated. remove once live