From d22600ac190f41e5d44c1d1705c8af30c996dabc Mon Sep 17 00:00:00 2001 From: Kyle Pope Date: Thu, 5 Mar 2026 23:58:09 +0800 Subject: [PATCH] Fix remaining bare notification type string literal in cancel endpoint Co-Authored-By: Claude Opus 4.6 --- backend/app/routers/connections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/routers/connections.py b/backend/app/routers/connections.py index bfd4f9a..26b72bd 100644 --- a/backend/app/routers/connections.py +++ b/backend/app/routers/connections.py @@ -589,7 +589,7 @@ async def cancel_request( # Silent cleanup: remove the notification sent to the receiver await db.execute( delete(Notification).where( - Notification.source_type == "connection_request", + Notification.source_type == NOTIF_TYPE_CONNECTION_REQUEST, Notification.source_id == request_id, Notification.user_id == receiver_id, )