log connection string

This commit is contained in:
Alex Holliday committed 2025-04-25 16:28:19 -07:00
1 parent 93e86b3280
commit f232075a97
1 file changed
+1
+1
View File
@@ -96,6 +96,7 @@ class MongoDB {
try {
const connectionString =
process.env.DB_CONNECTION_STRING || "mongodb://localhost:27017/uptime_db";
console.log("Connecting to MongoDB with connection string:", connectionString);
await mongoose.connect(connectionString);
// If there are no AppSettings, create one
await AppSettings.findOneAndUpdate(