Fixed Mongoose Warning (#856)
This commit is contained in:
parent
74ec1ba5bf
commit
456697ec75
1 changed files with 1 additions and 0 deletions
|
@ -121,6 +121,7 @@ require('./config/passport');
|
|||
// const passportConfig = require('./config/passport');
|
||||
|
||||
// Connect to MongoDB
|
||||
mongoose.Promise = global.Promise;
|
||||
mongoose.connect(mongoConnectionString, { useMongoClient: true });
|
||||
mongoose.connection.on('error', () => {
|
||||
console.error('MongoDB Connection Error. Please make sure that MongoDB is running.');
|
||||
|
|
Loading…
Reference in a new issue