Skip to content

Commit

Permalink
Update and test on Node 12.x.x LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
cefjoeii committed May 16, 2020
1 parent b3ba57d commit dbb90f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ const config = require('./config/db');
mongoose.Promise = global.Promise;

// Connect to the database
mongoose.connect(config.db, { useNewUrlParser: true });
mongoose.connect(config.db, {
useNewUrlParser: true,
useUnifiedTopology: true,
useCreateIndex: true
});

let db = mongoose.connection;

db.on('open', () => {
Expand Down

0 comments on commit dbb90f0

Please sign in to comment.