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 e16ffdb392
commit 6f69f6b539

View File

@ -36,7 +36,7 @@ const BatchDeleteChats = ({
setLoading(true); setLoading(true);
try { try {
for (const chatId of chatIds) { for (const chatId of chatIds) {
await fetch(`${process.env.NEXT_PUBLIC_API_URL}/chats/${chatId}`, { await fetch(`/api/chats/${chatId}`, {
method: 'DELETE', method: 'DELETE',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',