Skip to content

Commit b6f23f7

Browse files
dotansimhadarkbasic
authored andcommitted
Step 13.34: Allow updating pictureId
1 parent 9ee3856 commit b6f23f7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎api/server/methods.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ Meteor.methods({
5959
'User must be logged-in to create a new chat');
6060

6161
check(profile, {
62-
name: nonEmptyString
62+
name: nonEmptyString,
63+
pictureId: Match.Maybe(nonEmptyString)
6364
});
6465

6566
Meteor.users.update(this.userId, {

0 commit comments

Comments
 (0)