Skip to content

Commit eebfabc

Browse files
eyalcohen4kunalkapadia
authored andcommitted
Change mongoUri constant to be mongo host only. (#362)
Remove port from mongoUri
1 parent 25662a7 commit eebfabc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Promise = require('bluebird'); // eslint-disable-line no-global-assign
1414
mongoose.Promise = Promise;
1515

1616
// connect to mongo db
17-
const mongoUri = `${config.mongo.host}:${config.mongo.port}`;
17+
const mongoUri = config.mongo.host;
1818
mongoose.connect(mongoUri, { server: { socketOptions: { keepAlive: 1 } } });
1919
mongoose.connection.on('error', () => {
2020
throw new Error(`unable to connect to database: ${config.db}`);

0 commit comments

Comments
 (0)