From 4e7498b0c4ae9b010f517aab3c182107b8ab5357 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Mon, 17 Nov 2025 17:02:47 +0800 Subject: [PATCH] CI debug... --- api/apps/sdk/chat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/apps/sdk/chat.py b/api/apps/sdk/chat.py index aae20f9fb..5d62205ab 100644 --- a/api/apps/sdk/chat.py +++ b/api/apps/sdk/chat.py @@ -226,7 +226,7 @@ async def update(tenant_id, chat_id): @manager.route("/chats", methods=["DELETE"]) # noqa: F821 @token_required -async def delete(tenant_id): +async def delete_chats(tenant_id): errors = [] success_count = 0 req = await request.json @@ -249,8 +249,8 @@ async def delete(tenant_id): errors.append(f"Assistant({id}) not found.") continue temp_dict = {"status": StatusEnum.INVALID.value} - DialogService.update_by_id(id, temp_dict) - success_count += 1 + success_count += DialogService.update_by_id(id, temp_dict) + print(success_count, "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$", flush=True) if errors: if success_count > 0: