This commit is contained in:
Timothy Jaeryang Baek committed 2026-10-25 14:20:56 +09:00
1 parent 5cc0ed71d6
commit 5f95008abd
33 files changed
+359 -363

No files matched your search

+7 -2
View File
@@ -315,7 +315,11 @@ export const createNoteChatById = async (token: string, id: string) => {
return res;
};
export const updateNoteById = async (token: string, id: string, note: NoteItem) => {
export const updateNoteById = async (
token: string,
id: string,
note: Omit<NoteItem, 'access_grants'>
) => {
let error = null;
const res = await fetch(`${WEBUI_API_BASE_URL}/notes/${id}/update`, {
@@ -326,7 +330,8 @@ export const updateNoteById = async (token: string, id: string, note: NoteItem)
authorization: `Bearer ${token}`
},
body: JSON.stringify({
...note
...note,
access_grants: undefined
})
})
.then(async (res) => {