diff --git a/keep/api/core/db.py b/keep/api/core/db.py index daa168447..5e550fbc3 100644 --- a/keep/api/core/db.py +++ b/keep/api/core/db.py @@ -4491,7 +4491,7 @@ def get_resource_ids_by_resource_type( def get_last_alert_by_fingerprint( tenant_id: str, fingerprint: str, session: Optional[Session] = None -) -> Optional[Alert]: +) -> Optional[LastAlert]: with existed_or_new_session(session) as session: return session.exec( select(LastAlert)