Fix jwt-token

This commit is contained in:
2025-08-18 05:42:33 +02:00
parent af2a1078ac
commit 8a9a5a7e3b
4 changed files with 149 additions and 9 deletions

View File

@@ -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');