瀏覽代碼

fix: return code in service api (#6911)

tags/0.6.16
crazywoola 1 年之前
父節點
當前提交
7ab04e17e7
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      api/controllers/service_api/app/conversation.py

+ 1
- 1
api/controllers/service_api/app/conversation.py 查看文件

@@ -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):

Loading…
取消
儲存