Skip to content
Permalink
Browse files

Step 7.16: Init publication on server start

  • Loading branch information...
DAB0mB committed Nov 10, 2016
1 parent 7ea8c5b commit c513d22c49c6fe3a0b8a1ac8c12c0af8ee085266
Showing with 2 additions and 0 deletions.
  1. +2 −0 api/server/main.ts
@@ -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']);

0 comments on commit c513d22

Please sign in to comment.
You can’t perform that action at this time.