Skip to content

Commit 4ca17ac

Browse files
committed
attempting to use aws flag
1 parent e4fe222 commit 4ca17ac

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/utils/db.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ function getMongoConnectionString () {
3131
}
3232

3333
function getMongoConnectionOptions () {
34-
logger.info(`Is Mongo being used: ${process.env.USEMONGO}`)
35-
if (process.env.USEMONGO !== undefined && booleanIsTrue(process.env.USEMONGO)) {
34+
logger.info(`On AWS: ${process.env.useAWS}`)
35+
if (process.env.useAWS) {
3636
return {
37-
tls: false,
38-
useNewUrlParser: true,
39-
useUnifiedTopology: true
37+
authMechanism: 'SCRAM-SHA-1',
38+
tls: false
4039
}
4140
}
4241
return {
43-
authMechanism: 'SCRAM-SHA-1',
44-
tls: false
42+
tls: false,
43+
useNewUrlParser: true,
44+
useUnifiedTopology: true
4545
}
4646
}
4747

0 commit comments

Comments
 (0)