Permalink
Browse files

Step 12.20: Allow location message type on server side

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent 4f4b2a9 commit 7bdf1287177d36dee670337623bedd6e9add4ed4
Showing with 1 addition and 1 deletion.
  1. +1 −1 api/server/methods.ts
View
@@ -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);

0 comments on commit 7bdf128

Please sign in to comment.