Timothy J. Baek 11 ماه پیش
والد
کامیت
0d07d10bd8
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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