Skip to content

Commit

Permalink
Step 7.4: Added meteor accounts config
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Mar 23, 2017
1 parent ce934ac commit 7830566
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/server/main.ts
Expand Up @@ -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;

Expand Down

0 comments on commit 7830566

Please sign in to comment.