Skip to content

Commit e3bdcb6

Browse files
Fix selected DB.
1 parent adca892 commit e3bdcb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ module.exports.connect = async function(connection) {
7171
console.log('Connecting to Mongo with URI: ' + uri);
7272

7373
const client = await MongoClient.connect(uri, options);
74-
db = client.db(connection.dbName);
74+
db = client.db();
7575
return db;
7676
};

0 commit comments

Comments
 (0)