瀏覽代碼

fix: typo when assign doc_metadata when non-empty (#15975)

tags/1.1.0
L8ng 7 月之前
父節點
當前提交
98a4b3e78b
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      api/services/dataset_service.py

+ 1
- 1
api/services/dataset_service.py 查看文件

@@ -1245,7 +1245,7 @@ class DocumentService:
document.name = document_data.name
# update doc_type and doc_metadata if provided
if document_data.metadata is not None:
document.doc_metadata = document_data.metadata.doc_type
document.doc_metadata = document_data.metadata.doc_metadata
document.doc_type = document_data.metadata.doc_type
# update document to be waiting
document.indexing_status = "waiting"

Loading…
取消
儲存