Browse Source
fix: move database service call inside session context in workflow draft variable API (#23996)
tags/1.8.0
耐小心
2 months ago
No account linked to committer's email address
|
|
|
@@ -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 |
|
|
|
|