This commit is contained in:
Devin Deng 2022-11-06 17:10:15 -08:00 committed by Michael Zhang
parent 4a957bce10
commit c34e8e91b5

View file

@ -18,5 +18,7 @@ export const getMongoDBClient = async () => {
const client = new MongoClient(URI); const client = new MongoClient(URI);
await client.connect(); await client.connect();
return client.db(DATABASENAME); db = client.db(DATABASENAME);
return db;
} }