mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: include workspace_id in document query return values
--bug=1057837 --user=刘瑞斌 【知识库】、压缩包文件中存在视频和图片,只能分段上传后提示信息存在问题 https://www.tapd.cn/62980211/s/1721454
This commit is contained in:
parent
e794874d82
commit
868b4b6eab
|
|
@ -1099,7 +1099,7 @@ class DocumentSerializers(serializers.Serializer):
|
|||
# 查询文档
|
||||
query_set = QuerySet(model=Document)
|
||||
if len(document_model_list) == 0:
|
||||
return [], knowledge_id
|
||||
return [], knowledge_id, workspace_id
|
||||
query_set = query_set.filter(**{'id__in': [d.id for d in document_model_list]})
|
||||
return native_search(
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue