Skip to content

Commit

Permalink
Fix selected DB.
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-krcmar authored Sep 12, 2018
1 parent adca892 commit e3bdcb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ module.exports.connect = async function(connection) {
console.log('Connecting to Mongo with URI: ' + uri);

const client = await MongoClient.connect(uri, options);
db = client.db(connection.dbName);
db = client.db();
return db;
};

0 comments on commit e3bdcb6

Please sign in to comment.