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: move database service call inside session context in workflow draft variable API (#23996)

耐小心4b9812ce6a32
diff --git a/api/controllers/console/app/workflow_draft_variable.py b/api/controllers/console/app/workflow_draft_variable.py
index ba93f82756e..414c07ef508 100644
--- a/api/controllers/console/app/workflow_draft_variable.py
+++ b/api/controllers/console/app/workflow_draft_variable.py
@@ -163,11 +163,11 @@ class WorkflowVariableCollectionApi(Resource):
draft_var_srv = WorkflowDraftVariableService(
session=session,
)
- workflow_vars = draft_var_srv.list_variables_without_values(
- app_id=app_model.id,
- page=args.page,
- limit=args.limit,
- )
+ workflow_vars = draft_var_srv.list_variables_without_values(
+ app_id=app_model.id,
+ page=args.page,
+ limit=args.limit,
+ )
return workflow_vars