fix: resolve MongoDB connection and port configuration issues
- Added dotenv configuration for environment variables - Fixed MongoDB connection string loading - Configured server port to 3005 - Updated cron jobs for expired messages
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
// }
|
||||
// module.exports = startMongoDB
|
||||
|
||||
|
||||
const mongoose = require('mongoose')
|
||||
require('dotenv').config();
|
||||
mongoose.connection.on('error', (error) => {
|
||||
console.log('mongodb connection failed! ', error.message)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user