"...resnet50_tensorflow.git" did not exist on "4c99ab71ba41c1092a7e108b6b11439c63371ce9"
Commit bec00e7e authored by Peter De-Ath's avatar Peter De-Ath
Browse files

fix: change update_memory to correct naming convention

fix: update update_memory to POST
parent 493e3068
......@@ -65,7 +65,7 @@ class MemoriesTable:
else:
return None
def update_memory(
def update_memory_by_id(
self,
id: str,
content: str,
......
......@@ -64,11 +64,11 @@ async def add_memory(
return memory
@router.patch("/{memory_id}", response_model=Optional[MemoryModel])
async def update_memory(
@router.post("/{memory_id}", response_model=Optional[MemoryModel])
async def update_memory_by_id(
memory_id: str, request: Request, form_data: MemoryUpdateModel, user=Depends(get_verified_user)
):
memory = Memories.update_memory(memory_id, form_data.content)
memory = Memories.update_memory_by_id(memory_id, form_data.content)
if memory is None:
raise HTTPException(status_code=404, detail="Memory not found")
......
......@@ -63,7 +63,7 @@ export const updateMemoryById = async (token: string, id: string, content: strin
let error = null;
const res = await fetch(`${WEBUI_API_BASE_URL}/memories/${id}`, {
method: 'PATCH',
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment