Skip to content

Commit 868b4b6

Browse files
committed
refactor: include workspace_id in document query return values
--bug=1057837 --user=刘瑞斌 【知识库】、压缩包文件中存在视频和图片,只能分段上传后提示信息存在问题 https://www.tapd.cn/62980211/s/1721454
1 parent e794874 commit 868b4b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/knowledge/serializers/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ def batch_save(self, instance_list: List[Dict], with_valid=True):
10991099
# 查询文档
11001100
query_set = QuerySet(model=Document)
11011101
if len(document_model_list) == 0:
1102-
return [], knowledge_id
1102+
return [], knowledge_id, workspace_id
11031103
query_set = query_set.filter(**{'id__in': [d.id for d in document_model_list]})
11041104
return native_search(
11051105
{

0 commit comments

Comments
 (0)