Timothy J. Baek hai 11 meses
pai
achega
0d07d10bd8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      backend/apps/web/routers/memories.py

+ 2 - 1
backend/apps/web/routers/memories.py

@@ -120,6 +120,7 @@ async def delete_memory_by_id(memory_id: str, user=Depends(get_verified_user)):
         collection = CHROMA_CLIENT.get_or_create_collection(
             name=f"user-memory-{user.id}"
         )
-        collection.delete_document(memory_id)
+        collection.delete(ids=[memory_id])
         return True
+
     return False