From c3c1f85ce15663d27fdc09382166a09cbdffd3b9 Mon Sep 17 00:00:00 2001 From: Andrew Molchanov Date: Wed, 21 Jul 2021 01:53:17 +0300 Subject: [PATCH] fix safeConnect --- lib/document_stores/mongodb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/document_stores/mongodb.js b/lib/document_stores/mongodb.js index 250dbe3..456fc4c 100644 --- a/lib/document_stores/mongodb.js +++ b/lib/document_stores/mongodb.js @@ -81,7 +81,7 @@ MongoDocumentStore.prototype.safeConnect = function (callback) { winston.error('error connecting to mongodb', { error: err }); callback(err); } else { - callback(undefined, client.db(this.connectionDBName)); + callback(undefined, client.db(this.connectionName)); } }); };