From 1ccd5c3cac99cdda2510fd9563cf889ff4772bc7 Mon Sep 17 00:00:00 2001 From: Justin Ahn Date: Sat, 5 Sep 2015 10:26:06 -0700 Subject: [PATCH] using the validation version of the method --- server/methods/saveUserProfile.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/methods/saveUserProfile.coffee b/server/methods/saveUserProfile.coffee index fb4098ee5ec..4129201e979 100644 --- a/server/methods/saveUserProfile.coffee +++ b/server/methods/saveUserProfile.coffee @@ -8,7 +8,7 @@ Meteor.methods Accounts.setPassword Meteor.userId(), settings.password, { logout: false } if settings.username? - Meteor.users.update Meteor.userId(), { $set: { "username": settings.username } } + Meteor.call 'setUsername', settings.username profile = {}