Skip to content

Commit

Permalink
Merge pull request #239 from telefonicaid/AlvaroVega-patch-1
Browse files Browse the repository at this point in the history
Update dbConn.js
  • Loading branch information
fgalan authored Mar 9, 2021
2 parents 7f269e1 + 3275e7c commit 3d57405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model/dbConn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3d57405

Please sign in to comment.