Permalink
Browse files

Step 7.4: Added meteor accounts config

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent 2ef46bb commit d367692ccc38c034868c085687141240d034747e
Showing with 6 additions and 0 deletions.
  1. +6 −0 api/server/main.ts
View
@@ -3,8 +3,14 @@ import { Chats } from './collections/chats';
import { Messages } from './collections/messages';
import * as moment from 'moment';
import { MessageType } from './models';
import { Accounts } from 'meteor/accounts-base';
Meteor.startup(() => {
if (Meteor.settings) {
Object.assign(Accounts._options, Meteor.settings['accounts-phone']);
SMS.twilio = Meteor.settings['twilio'];
}
if (Chats.find({}).cursor.count() === 0) {
let chatId;

0 comments on commit d367692

Please sign in to comment.