Fix jwt-token
This commit is contained in:
@@ -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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user