add database connection "hardcoded for testing" (add todo comment)

master
Matthew 2024-04-02 16:39:02 -04:00
parent 957c5a8928
commit 3e80cba3c1
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
1 changed files with 1 additions and 0 deletions

View File

@ -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}`);