Refactor:memory delete will re-use super method (#12684)

### What problem does this PR solve?
memory delete will re-use super method

### Type of change

- [x] Refactoring
This commit is contained in:
Stephen Hu
2026-01-19 12:45:37 +08:00
committed by GitHub
parent d6897b6054
commit 4a7e40630b

View File

@ -167,4 +167,4 @@ class MemoryService(CommonService):
@classmethod
@DB.connection_context()
def delete_memory(cls, memory_id: str):
return cls.model.delete().where(cls.model.id == memory_id).execute()
return cls.delete_by_id(memory_id)