From 3275e7ce91f8e05a564c6d341342c30e5e37a94b Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Tue, 9 Mar 2021 10:39:34 +0100 Subject: [PATCH] Update dbConn.js --- lib/model/dbConn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/dbConn.js b/lib/model/dbConn.js index fd697b4..b833501 100644 --- a/lib/model/dbConn.js +++ b/lib/model/dbConn.js @@ -108,7 +108,7 @@ function init(host, db, port, username, password, options, callback) { logger.info(context, 'Attempting to connect to MongoDB instance. Attempt %d', retries); // just to avoid warnings with recent mongoose versions options.useNewUrlParser = true; - options.useUnifiedTopology = true + options.useUnifiedTopology = true; mongoose.set('useCreateIndex', true); /* eslint-disable-next-line no-unused-vars */ const candidateDb = mongoose.createConnection(url, options, function(error, result) {