Skip to content

Commit

Permalink
Merge pull request #51 from EYBlockchain/liju.jose/fix-mongo-connecti…
Browse files Browse the repository at this point in the history
…on-url

mongo connection url corrected
  • Loading branch information
LijuJoseJJ authored Mar 16, 2021
2 parents ef24132 + 87206f5 commit b99e631
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 b99e631

Please sign in to comment.