fix: update batch delete URL format to match single delete format

This commit is contained in:
haddadrm
2025-04-09 13:59:34 +04:00
parent 1deda793bd
commit 0ebda34a52

View File

@ -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',