From 6f69f6b539f168593abfb5f52d0399df691211f6 Mon Sep 17 00:00:00 2001 From: haddadrm <121486289+haddadrm@users.noreply.github.com> Date: Wed, 9 Apr 2025 13:59:34 +0400 Subject: [PATCH] fix: update batch delete URL format to match single delete format --- src/components/BatchDeleteChats.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BatchDeleteChats.tsx b/src/components/BatchDeleteChats.tsx index 209efe7..4f7f32c 100644 --- a/src/components/BatchDeleteChats.tsx +++ b/src/components/BatchDeleteChats.tsx @@ -36,7 +36,7 @@ const BatchDeleteChats = ({ setLoading(true); try { for (const chatId of chatIds) { - await fetch(`${process.env.NEXT_PUBLIC_API_URL}/chats/${chatId}`, { + await fetch(`/api/chats/${chatId}`, { method: 'DELETE', headers: { 'Content-Type': 'application/json',