fix bug about fetching knowledge graph (#3394)

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2024-11-14 12:29:15 +08:00
committed by GitHub
parent 400fc3f5e9
commit 4caf932808
6 changed files with 120 additions and 62 deletions

View File

@ -73,7 +73,7 @@ class KnowledgebaseService(CommonService):
cls.model.id,
]
kbs = cls.model.select(*fields).where(cls.model.tenant_id == tenant_id)
kb_ids = [kb["id"] for kb in kbs]
kb_ids = [kb.id for kb in kbs]
return kb_ids
@classmethod