From 0b755973bdb711b018a5e94b8d78b792c8469602 Mon Sep 17 00:00:00 2001 From: Dotan Simha Date: Thu, 3 Nov 2016 19:03:12 +0200 Subject: [PATCH] Step 4.16: Init methods in the server side --- api/server/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/server/main.ts b/api/server/main.ts index 51b7c0c62..ffb29972d 100644 --- a/api/server/main.ts +++ b/api/server/main.ts @@ -1,8 +1,11 @@ import { Meteor } from 'meteor/meteor'; import { Chats, Messages } from "../collections/whatsapp-collections"; import * as moment from "moment"; +import { initMethods } from "./methods"; Meteor.startup(() => { + initMethods(); + if (Chats.find({}).cursor.count() === 0) { let chatId;