diff --git a/bin/server.js b/bin/server.js index 9d21b66..d3fbc84 100644 --- a/bin/server.js +++ b/bin/server.js @@ -24,7 +24,13 @@ async function startServer () { // Connect to the Mongo Database. mongoose.Promise = global.Promise mongoose.set('useCreateIndex', true) // Stop deprecation warning. - await mongoose.connect(config.database, { useNewUrlParser: true }) + await mongoose.connect( + config.database, + { + useUnifiedTopology: true, + useNewUrlParser: true + } + ) // MIDDLEWARE START