From a3c295ea1019e9100d2cb2e4e08b921740541b9f Mon Sep 17 00:00:00 2001 From: Michael McKay Date: Wed, 6 May 2020 13:16:30 -0400 Subject: [PATCH] Fix for #96. useUnifiedTopology for Mongo --- app/mongo/mongoClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mongo/mongoClient.js b/app/mongo/mongoClient.js index 221cf2afb..9ce1201ea 100644 --- a/app/mongo/mongoClient.js +++ b/app/mongo/mongoClient.js @@ -124,7 +124,7 @@ module.exports = class MongoClient { async _clientConnect(){ if (!this._client) { - const options = {useNewUrlParser: true}; + const options = {useNewUrlParser: true, useUnifiedTopology: true}; if(fs.existsSync(this._mongo.cert)) { options['tlsCAFile'] = this._mongo.cert; this.log.info(`Using tlsCAFile: ${this._mongo.cert}`);