Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
fix MongoAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
marihachi committed Aug 6, 2018
1 parent e06dbbb commit fbffbb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/helpers/MongoAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class MongoAdapter {
authentication = `${username}:${password}@`;
}

const client = await MongoClient.connect(`mongodb://${authentication}${host}`);
const client = await MongoClient.connect(`mongodb://${authentication}${host}/${dbname}`);

return new MongoAdapter(client, dbname);
}
Expand Down

0 comments on commit fbffbb1

Please sign in to comment.