Returns the real displayname and not the one transformed.

This commit is contained in:
gaba
2017-02-02 16:03:14 -08:00
parent 7da141ed29
commit b5c9c1c731
+1 -1
View File
@@ -362,7 +362,7 @@ module.exports = class UsersService {
static setDisplayName(id, displayName) {
return UsersService.isValidDisplayName(displayName)
.then((displayName) => { // displayName is valid
.then(() => { // displayName is valid
return UserModel.update(
{id},
{$set: {'displayName': displayName}})