Fix: remove dup ids for APIs. (#6263)

### What problem does this PR solve?

#6234

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-03-19 13:10:59 +08:00
committed by GitHub
parent 8157285a79
commit c2302abaf1
3 changed files with 4 additions and 4 deletions

View File

@ -237,7 +237,7 @@ def delete(tenant_id):
if not req:
ids = None
else:
ids = req.get("ids")
ids = set(req.get("ids"))
if not ids:
id_list = []
kbs = KnowledgebaseService.query(tenant_id=tenant_id)