Fix remaining bare notification type string literal in cancel endpoint
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
20692632f2
commit
d22600ac19
@ -589,7 +589,7 @@ async def cancel_request(
|
|||||||
# Silent cleanup: remove the notification sent to the receiver
|
# Silent cleanup: remove the notification sent to the receiver
|
||||||
await db.execute(
|
await db.execute(
|
||||||
delete(Notification).where(
|
delete(Notification).where(
|
||||||
Notification.source_type == "connection_request",
|
Notification.source_type == NOTIF_TYPE_CONNECTION_REQUEST,
|
||||||
Notification.source_id == request_id,
|
Notification.source_id == request_id,
|
||||||
Notification.user_id == receiver_id,
|
Notification.user_id == receiver_id,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user