Commit 6e3ffc25 authored by crazywoola's avatar crazywoola

feat: modify delete in concole api

parent deb21ed9
......@@ -225,7 +225,7 @@ class CompletionConversationDetailApi(Resource):
if not conversation:
raise NotFound("Conversation Not Exists.")
db.session.delete(conversation)
conversation.is_deleted = True
db.session.commit()
return {'result': 'success'}, 204
......@@ -393,7 +393,7 @@ class ChatConversationDetailApi(Resource):
if not conversation:
raise NotFound("Conversation Not Exists.")
db.session.delete(conversation)
conversation.is_deleted = True
db.session.commit()
return {'result': 'success'}, 204
......
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