Skip to content

Commit

Permalink
Step 13.34: Allow updating pictureId
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and darkbasic committed Oct 16, 2017
1 parent 9ee3856 commit b6f23f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/server/methods.ts
Expand Up @@ -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, {
Expand Down

0 comments on commit b6f23f7

Please sign in to comment.