From 4e9ca31146bcc544f9c32853b840a91700bbf142 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 2 Apr 2024 06:36:02 -0700 Subject: [PATCH] Update chats.py --- backend/apps/web/routers/chats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/web/routers/chats.py b/backend/apps/web/routers/chats.py index 91b8a7343..2637953eb 100644 --- a/backend/apps/web/routers/chats.py +++ b/backend/apps/web/routers/chats.py @@ -232,7 +232,7 @@ async def delete_shared_chat_by_id(id: str, user=Depends(get_current_user)): if chat: if not chat.share_id: return False - result = Chats.delete_chat_by_id_and_user_id(chat.share_id, "shared") + result = Chats.delete_shared_chat_by_chat_id(chat.id) update_result = Chats.update_chat_share_id_by_id(chat.id, None) return result and update_result