From e3bdcb6bd6d47044363e2af1300dfc36b6fb1dd6 Mon Sep 17 00:00:00 2001 From: martin-krcmar Date: Wed, 12 Sep 2018 13:47:47 +0200 Subject: [PATCH] Fix selected DB. --- db/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.js b/db/db.js index 12c1557..482864d 100644 --- a/db/db.js +++ b/db/db.js @@ -71,6 +71,6 @@ module.exports.connect = async function(connection) { console.log('Connecting to Mongo with URI: ' + uri); const client = await MongoClient.connect(uri, options); - db = client.db(connection.dbName); + db = client.db(); return db; };