mirror of https://github.com/langgenius/dify.git
fix(pipeline-publish): publish not update dataset
This commit is contained in:
parent
0bcdd0db99
commit
9f3c996be2
|
|
@ -352,10 +352,9 @@ class RagPipelineService:
|
|||
knowledge_configuration = KnowledgeConfiguration(**knowledge_configuration)
|
||||
|
||||
# update dataset
|
||||
with Session(db.engine) as session:
|
||||
dataset = pipeline.retrieve_dataset(session=session)
|
||||
if not dataset:
|
||||
raise ValueError("Dataset not found")
|
||||
dataset = pipeline.retrieve_dataset(session=session)
|
||||
if not dataset:
|
||||
raise ValueError("Dataset not found")
|
||||
DatasetService.update_rag_pipeline_dataset_settings(
|
||||
session=session,
|
||||
dataset=dataset,
|
||||
|
|
|
|||
Loading…
Reference in New Issue