Skip to content

Commit 587ec44

Browse files
dotansimhadarkbasic
authored andcommitted
Step 7.4: Added meteor accounts config
1 parent a75c63d commit 587ec44

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/server/main.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ import { Chats } from './collections/chats';
33
import { Messages } from './collections/messages';
44
import * as moment from 'moment';
55
import { MessageType } from './models';
6+
import { Accounts } from 'meteor/accounts-base';
67

78
Meteor.startup(() => {
9+
if (Meteor.settings) {
10+
Object.assign(Accounts._options, Meteor.settings['accounts-phone']);
11+
SMS.twilio = Meteor.settings['twilio'];
12+
}
13+
814
if (Chats.find({}).cursor.count() === 0) {
915
let chatId;
1016

0 commit comments

Comments
 (0)