Skip to content

Commit 0ebda34

Browse files
committed
fix: update batch delete URL format to match single delete format
1 parent 1deda79 commit 0ebda34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/BatchDeleteChats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const BatchDeleteChats = ({
3636
setLoading(true);
3737
try {
3838
for (const chatId of chatIds) {
39-
await fetch(`${process.env.NEXT_PUBLIC_API_URL}/chats/${chatId}`, {
39+
await fetch(`/api/chats/${chatId}`, {
4040
method: 'DELETE',
4141
headers: {
4242
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)