Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

L8ng98a4b3e78bba
diff --git a/api/services/dataset_service.py b/api/services/dataset_service.py
index 7cb5f3f4af9..f44a9671e55 100644
--- a/api/services/dataset_service.py
+++ b/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"