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
DAB0mB committed Feb 26, 2017
1 parent cf52aa3 commit dfa7a49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/main.ts
@@ -1,9 +1,15 @@
import { Accounts } from 'meteor/accounts-base';
import { Meteor } from 'meteor/meteor';
import * as Moment from 'moment';
import { Chats, Messages } from '../imports/collections';
import { MessageType } from '../imports/models';

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 dfa7a49

Please sign in to comment.