From bc95e29d7304c31cc0e6107e7359c13f7a3a3793 Mon Sep 17 00:00:00 2001 From: dotansimha Date: Wed, 25 Jan 2017 00:54:50 +0200 Subject: [PATCH] Step 12.31: Allow updating pictureId --- server/methods.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/methods.ts b/server/methods.ts index 865779b..dc8dabf 100644 --- a/server/methods.ts +++ b/server/methods.ts @@ -61,7 +61,8 @@ Meteor.methods({ 'User must be logged-in to create a new chat'); check(profile, { - name: nonEmptyString + name: nonEmptyString, + pictureId: Match.Maybe(nonEmptyString) }); Meteor.users.update(this.userId, {