fix mongo connection so that deprecation warning doesn't appear
This commit is contained in:
parent
0f0be1f956
commit
02c7c2f26d
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ require('./config/passport');
|
||||||
// const passportConfig = require('./config/passport');
|
// const passportConfig = require('./config/passport');
|
||||||
|
|
||||||
// Connect to MongoDB
|
// Connect to MongoDB
|
||||||
mongoose.connect(mongoConnectionString);
|
mongoose.connect(mongoConnectionString, { useMongoClient: true });
|
||||||
mongoose.connection.on('error', () => {
|
mongoose.connection.on('error', () => {
|
||||||
console.error('MongoDB Connection Error. Please make sure that MongoDB is running.');
|
console.error('MongoDB Connection Error. Please make sure that MongoDB is running.');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|
Loading…
Reference in a new issue