Skip to content

Commit

Permalink
feat: added event_id to alertDTO to utilize as unique identifier in w…
Browse files Browse the repository at this point in the history
…orkflows and rest
  • Loading branch information
pehlicd committed Apr 11, 2024
1 parent 6f74cf1 commit ba93a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keep/api/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ def get_last_alerts(tenant_id, provider_id=None, limit=1000) -> list[Alert]:
alerts = []
for alert, startedAt in alerts_with_start:
alert.event["startedAt"] = str(startedAt)
alert.event["event_id"] = str(alert.id)
alert.event["keep_event_id"] = str(alert.id)
alerts.append(alert)

return alerts
Expand Down

0 comments on commit ba93a08

Please sign in to comment.