fix: return code in service api (#6911)

This commit is contained in:
crazywoola 2024-08-02 15:48:58 +08:00 committed by GitHub
parent bf3f1027c8
commit 7ab04e17e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,7 @@ class ConversationDetailApi(Resource):
ConversationService.delete(app_model, conversation_id, end_user)
except services.errors.conversation.ConversationNotExistsError:
raise NotFound("Conversation Not Exists.")
return {"result": "success"}, 204
return {'result': 'success'}, 200
class ConversationRenameApi(Resource):