fix: update batch delete URL format to match single delete format
This commit is contained in:
parent
e16ffdb392
commit
6f69f6b539
1 changed files with 1 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue