Skip to content
Permalink
Browse files
Step 12.20: Allow location message type on server side
  • Loading branch information
dotansimha authored and darkbasic committed Oct 16, 2017
1 parent a337c83 commit 0172a8a5d9e4d2a27a4cf9fd1a28f4da6c4355cb
Showing with 1 addition and 1 deletion.
  1. +1 −1 api/server/methods.ts
@@ -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 0172a8a

Please sign in to comment.