From 49a3f4e62ee41264248889a940fbeec704394388 Mon Sep 17 00:00:00 2001 From: RedDucks Date: Mon, 5 Mar 2018 10:57:03 -0500 Subject: [PATCH] updated db.js --- db.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db.js b/db.js index d6b0208..6cd6bc1 100644 --- a/db.js +++ b/db.js @@ -10,9 +10,9 @@ let connection_string = ''; if(config.mongo.use_authentication) { connection_string = `mongodb://${auth.username}:${auth.password}@${hostname}:${port}/\ - ${user_database_name}?authSource=${auth.authentication_database}` + ${database}?authSource=${auth.authentication_database}` }else { - connection_string = `mongodb://${hostname}:${port}/${user_database_name}` + connection_string = `mongodb://${hostname}:${port}/${database}` } user_database = mongoist(connection_string);