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 26, 2017
1 parent e4f8c02 commit b47dbce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/methods.ts
Expand Up @@ -73,7 +73,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 b47dbce

Please sign in to comment.