Commit deb21ed9 authored by crazywoola's avatar crazywoola

feat: modify delete in web api

parent 24672492
......@@ -90,5 +90,5 @@ class ConversationService:
def delete(cls, app_model: App, conversation_id: str, user: Optional[Union[Account | EndUser]]):
conversation = cls.get_conversation(app_model, conversation_id, user)
db.session.delete(conversation)
conversation.is_deleted = True
db.session.commit()
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