From 0172a8a5d9e4d2a27a4cf9fd1a28f4da6c4355cb Mon Sep 17 00:00:00 2001 From: dotansimha Date: Tue, 24 Jan 2017 22:00:02 +0200 Subject: [PATCH] Step 12.20: Allow location message type on server side --- api/server/methods.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server/methods.ts b/api/server/methods.ts index bc5dc3820..ec7c482b3 100644 --- a/api/server/methods.ts +++ b/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);