Notifications
This commit is contained in:
@@ -8,6 +8,7 @@ import routes from './routes';
|
||||
import logger from './utils/logger';
|
||||
import { testConnection } from './config/database';
|
||||
import { auditMiddleware } from './middleware/audit.middleware';
|
||||
import { scheduleNegativeFlowDetection } from './jobs/negativeFlowDetection';
|
||||
|
||||
const app: Application = express();
|
||||
|
||||
@@ -85,6 +86,9 @@ const startServer = async () => {
|
||||
await testConnection();
|
||||
logger.info('Database connection established');
|
||||
|
||||
scheduleNegativeFlowDetection();
|
||||
logger.info('Cron jobs initialized');
|
||||
|
||||
app.listen(PORT, () => {
|
||||
logger.info(`Server running on port ${PORT} in ${NODE_ENV} mode`);
|
||||
logger.info(`Health check available at http://localhost:${PORT}/health`);
|
||||
|
||||
Reference in New Issue
Block a user