Skip to content

Commit

Permalink
Step 4.16: Init methods in the server side
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Dec 24, 2016
1 parent 944316d commit 9ec8c3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/server/main.ts
@@ -1,8 +1,11 @@
import * as moment from "moment";
import { Meteor } from 'meteor/meteor';
import { initMethods } from "./methods";
import { Chats, Messages } from "../collections/whatsapp-collections";

Meteor.startup(() => {
initMethods();

if (Chats.find({}).cursor.count() === 0) {
let chatId;

Expand Down

0 comments on commit 9ec8c3f

Please sign in to comment.