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)); } }); };