Fix jwt-token

This commit is contained in:
2025-09-22 10:57:15 +02:00
parent 92d12544a9
commit 0cb595c31f

View File

@@ -498,7 +498,7 @@ class AlertService {
} catch (channelError) { } catch (channelError) {
console.error(`Error sending ${channel} alert:`, channelError); console.error(`Error sending ${channel} alert:`, channelError);
// Log failed alert // Log failed alert - FIXED: Include alert_event_id for proper grouping
await AlertLog.create({ await AlertLog.create({
alert_rule_id: rule.id, alert_rule_id: rule.id,
detection_id: detection.id, detection_id: detection.id,
@@ -509,7 +509,8 @@ class AlertService {
message: message, message: message,
status: 'failed', status: 'failed',
error_message: channelError.message, error_message: channelError.message,
priority: rule.priority priority: rule.priority,
alert_event_id: alertEventId // FIXED: Add missing alert_event_id for grouping
}); });
} }
} }