Explorar o código

fix: delete shared chat by id

Timothy J. Baek hai 1 ano
pai
achega
49428eb7ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lib/apis/chats/index.ts

+ 1 - 1
src/lib/apis/chats/index.ts

@@ -285,7 +285,7 @@ export const shareChatById = async (token: string, id: string) => {
 export const deleteSharedChatById = async (token: string, id: string) => {
 export const deleteSharedChatById = async (token: string, id: string) => {
 	let error = null;
 	let error = null;
 
 
-	const res = await fetch(`${WEBUI_API_BASE_URL}/chats/${id}`, {
+	const res = await fetch(`${WEBUI_API_BASE_URL}/chats/${id}/share`, {
 		method: 'DELETE',
 		method: 'DELETE',
 		headers: {
 		headers: {
 			Accept: 'application/json',
 			Accept: 'application/json',