Bläddra i källkod

Fix conversation response issue (#10450)

Benjamin 5 månader sedan
förälder
incheckning
919275cc58
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      api/controllers/service_api/app/conversation.py

+ 2 - 1
api/controllers/service_api/app/conversation.py

@@ -62,9 +62,10 @@ class ConversationDetailApi(Resource):
         conversation_id = str(c_id)
 
         try:
-            return ConversationService.delete(app_model, conversation_id, end_user)
+            ConversationService.delete(app_model, conversation_id, end_user)
         except services.errors.conversation.ConversationNotExistsError:
             raise NotFound("Conversation Not Exists.")
+        return {"result": "success"}, 200
 
 
 class ConversationRenameApi(Resource):