Skip to content

Commit

Permalink
fix: connection url corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
LijuJoseJJ committed Mar 16, 2021
1 parent ef24132 commit 87206f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merkle-tree/src/db/common/adminDbConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { host, port, databaseName, dbUrl } = config.get('mongo');
const dbConnections = {};
let url;
if (dbUrl) url = dbUrl;
else url = `${host}:${port}`;
else url = `mongodb://${host}:${port}`;

dbConnections.admin = mongoose.createConnection(`${url}/${databaseName}`, {
useNewUrlParser: true,
Expand Down

0 comments on commit 87206f5

Please sign in to comment.