Skip to content

Commit

Permalink
Step 12.31: Allow updating pictureId
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Feb 13, 2017
1 parent 8cd2d26 commit bc95e29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/methods.ts
Expand Up @@ -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, {
Expand Down

0 comments on commit bc95e29

Please sign in to comment.