Fix jwt-token
This commit is contained in:
@@ -116,6 +116,17 @@ async function startServer() {
|
||||
console.log('📱 SMS Alerts: ⚠️ Disabled (no Twilio credentials)');
|
||||
}
|
||||
|
||||
// Start periodic clear alert checking (every 2 minutes)
|
||||
setInterval(async () => {
|
||||
try {
|
||||
await alertService.checkClearedAlerts();
|
||||
} catch (error) {
|
||||
console.error('Error checking cleared alerts:', error);
|
||||
}
|
||||
}, 2 * 60 * 1000); // Check every 2 minutes
|
||||
|
||||
console.log('🔄 Clear alert monitoring: ✅ Started');
|
||||
|
||||
console.log(`📊 Health check: http://localhost:${PORT}/health`);
|
||||
console.log(`🌐 API endpoint: http://localhost:${PORT}/api`);
|
||||
console.log('================================================\n');
|
||||
|
||||
Reference in New Issue
Block a user