From 3e80cba3c1115214f7b318f7dcf60d6eb238af84 Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 2 Apr 2024 16:39:02 -0400 Subject: [PATCH] add database connection "hardcoded for testing" (add todo comment) --- index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.ts b/index.ts index aba8752..3247476 100644 --- a/index.ts +++ b/index.ts @@ -31,6 +31,7 @@ export async function main() { mongoose.connection.once("open", () => { console.info("[Info - Database] Connected to MongoDB"); }) + // TODO: Fetch the MongoDB URI from the config file await mongoose.connect("mongodb://localhost:27017/crra-main", {}); } catch (error) { console.error(`[Error - Database] Failed to connect to MongoDB: ${error}`);