Skip to content

Commit

Permalink
Step 7.16: Init publication on server start
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB committed Dec 24, 2016
1 parent 27cc365 commit d0fc1fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/server/main.ts
Expand Up @@ -2,10 +2,12 @@ import * as moment from "moment";
import { Meteor } from 'meteor/meteor';
import { Accounts } from 'meteor/accounts-base';
import { initMethods } from "./methods";
import { initPublications } from "./publications";
import { Users } from "../collections/whatsapp-collections";

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

if (Meteor.settings) {
Object.assign(Accounts._options, Meteor.settings['accounts-phone']);
Expand Down

0 comments on commit d0fc1fb

Please sign in to comment.