Skip to content

Commit b99e631

Browse files
authored
Merge pull request #51 from EYBlockchain/liju.jose/fix-mongo-connection-url
mongo connection url corrected
2 parents ef24132 + 87206f5 commit b99e631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merkle-tree/src/db/common/adminDbConnection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { host, port, databaseName, dbUrl } = config.get('mongo');
55
const dbConnections = {};
66
let url;
77
if (dbUrl) url = dbUrl;
8-
else url = `${host}:${port}`;
8+
else url = `mongodb://${host}:${port}`;
99

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

0 commit comments

Comments
 (0)