mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 03:35:51 +08:00
fix: typo when assign doc_metadata when non-empty (#15975)
This commit is contained in:
parent
2b4d1cf1db
commit
98a4b3e78b
@ -1245,7 +1245,7 @@ class DocumentService:
|
|||||||
document.name = document_data.name
|
document.name = document_data.name
|
||||||
# update doc_type and doc_metadata if provided
|
# update doc_type and doc_metadata if provided
|
||||||
if document_data.metadata is not None:
|
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
|
document.doc_type = document_data.metadata.doc_type
|
||||||
# update document to be waiting
|
# update document to be waiting
|
||||||
document.indexing_status = "waiting"
|
document.indexing_status = "waiting"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user