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 enable dataset metadata built-in field when dataset is empty (#16290)

Jyong3e84c77bbb36
diff --git a/api/services/metadata_service.py b/api/services/metadata_service.py
index a43b970a39c..4cd2f9e8cb9 100644
--- a/api/services/metadata_service.py
+++ b/api/services/metadata_service.py
@@ -137,7 +137,7 @@ class MetadataService:
doc_metadata[BuiltInField.source.value] = MetadataDataSource[document.data_source_type].value
document.doc_metadata = doc_metadata
db.session.add(document)
- db.session.commit()
+ db.session.commit()
except Exception:
logging.exception("Enable built-in field failed")
finally: