From a8dbbffa39a7c1e8b85a86555c97e693ef9b9ec2 Mon Sep 17 00:00:00 2001 From: dotansimha Date: Wed, 25 Jan 2017 00:54:50 +0200 Subject: [PATCH] Step 13.33: Allow updating pictureId --- api/server/methods.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/server/methods.ts b/api/server/methods.ts index ec7c482b3..07f76f3f1 100644 --- a/api/server/methods.ts +++ b/api/server/methods.ts @@ -59,7 +59,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, {