Skip to content

Commit 0172a8a

Browse files
dotansimhadarkbasic
authored andcommitted
Step 12.20: Allow location message type on server side
1 parent a337c83 commit 0172a8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/server/methods.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Meteor.methods({
7070
if (!this.userId) throw new Meteor.Error('unauthorized',
7171
'User must be logged-in to create a new chat');
7272

73-
check(type, Match.OneOf(String, [ MessageType.TEXT ]));
73+
check(type, Match.OneOf(String, [ MessageType.TEXT, MessageType.LOCATION ]));
7474
check(chatId, nonEmptyString);
7575
check(content, nonEmptyString);
7676

0 commit comments

Comments
 (0)