fix/database not awaited

This commit is contained in:
SowinskiBraeden committed 2025-05-08 18:09:22 -07:00
1 parent c4a90ceb15
commit 345cbd2bf2
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@ let users;
let assets; let assets;
let plans; let plans;
async function initDatabase() { async function initDatabase() {
const db = connectMongo(mongoURI, database); const db = await connectMongo(mongoURI, database);
// For any collection, init here // For any collection, init here
users = await getCollection(db, "users"); users = await getCollection(db, "users");