This commit is contained in:
Devin Deng 2022-11-06 17:10:15 -08:00
parent 6b908957c5
commit 9d4012a606

View file

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