We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25662a7 commit eebfabcCopy full SHA for eebfabc
index.js
@@ -14,7 +14,7 @@ Promise = require('bluebird'); // eslint-disable-line no-global-assign
14
mongoose.Promise = Promise;
15
16
// connect to mongo db
17
-const mongoUri = `${config.mongo.host}:${config.mongo.port}`;
+const mongoUri = config.mongo.host;
18
mongoose.connect(mongoUri, { server: { socketOptions: { keepAlive: 1 } } });
19
mongoose.connection.on('error', () => {
20
throw new Error(`unable to connect to database: ${config.db}`);
0 commit comments