From 7db708bdb7df5c02b214b7a7e853678532e410a6 Mon Sep 17 00:00:00 2001 From: Vladimir Filonov Date: Thu, 21 Nov 2024 11:49:22 +0400 Subject: [PATCH] Update keep/api/core/db.py Co-authored-by: Kirill Chernakov Signed-off-by: Vladimir Filonov --- keep/api/core/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)