prevent further user inaccuracies

This commit is contained in:
Amish Shah
2016-09-11 16:57:04 +01:00
parent 77e83fb85a
commit f0a9a1353f
4 changed files with 30 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ class UserUpdateAction extends Action {
}
const oldUser = cloneObject(client.user);
client.user.setup(data);
client.user.patch(data);
client.emit(Constants.Events.USER_UPDATE, oldUser, client.user);
return {
old: oldUser,