From ae53529352dee6694daf5f372afcfa6c80f7fc62 Mon Sep 17 00:00:00 2001 From: liuhua <10215101452@stu.ecun.edu.cn> Date: Mon, 2 Dec 2024 10:17:55 +0800 Subject: [PATCH] Fix the bug that prevented modifying . --- api/apps/sdk/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/apps/sdk/chat.py b/api/apps/sdk/chat.py index aa717a875e4..0f7509aac35 100644 --- a/api/apps/sdk/chat.py +++ b/api/apps/sdk/chat.py @@ -161,7 +161,7 @@ def update(tenant_id,chat_id): return get_error_data_result("`datasets` can't be empty") if ids: for kb_id in ids: - kbs = KnowledgebaseService.accessible(kb_id=chat_id, user_id=tenant_id) + kbs = KnowledgebaseService.accessible(kb_id=kb_id, user_id=tenant_id) if not kbs: return get_error_data_result(f"You don't own the dataset {kb_id}") kbs = KnowledgebaseService.query(id=kb_id)