updated db.js

This commit is contained in:
RedDucks
2018-03-05 10:57:03 -05:00
parent 2b7475494b
commit 49a3f4e62e

4
db.js
View File

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