Skip to content

Commit

Permalink
Step 11.20: Allow location message type on server side
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Feb 13, 2017
1 parent 9da1569 commit 101a225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server/methods.ts
Expand Up @@ -70,7 +70,7 @@ Meteor.methods({
if (!this.userId) throw new Meteor.Error('unauthorized',
'User must be logged-in to create a new chat');

check(type, Match.OneOf(String, [ MessageType.TEXT ]));
check(type, Match.OneOf(String, [ MessageType.TEXT, MessageType.LOCATION ]));
check(chatId, nonEmptyString);
check(content, nonEmptyString);

Expand Down

0 comments on commit 101a225

Please sign in to comment.