Skip to content

Commit

Permalink
Step 12.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 darkbasic committed Oct 16, 2017
1 parent a337c83 commit 0172a8a
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', if (!this.userId) throw new Meteor.Error('unauthorized',
'User must be logged-in to create a new chat'); '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(chatId, nonEmptyString);
check(content, nonEmptyString); check(content, nonEmptyString);


Expand Down

0 comments on commit 0172a8a

Please sign in to comment.