Remove DB warning on connect

master
Mark Moffat 2019-10-29 18:27:06 +10:30
parent 5a99d248ab
commit 1d0b0ac5f0
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ function initDb(dbUrl, callback){ // eslint-disable-line
console.warn('Trying to init DB again!');
return callback(null, _db);
}
MongoClient.connect(dbUrl, { useNewUrlParser: true }, connected);
MongoClient.connect(dbUrl, { useNewUrlParser: true, useUnifiedTopology: true }, connected);
function connected(err, client){
if(err){
return callback(err);