add database connection "hardcoded for testing" (add todo comment)
parent
957c5a8928
commit
3e80cba3c1
1
index.ts
1
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}`);
|
||||
|
|
Loading…
Reference in New Issue