fix: move database service call inside session context in workflow draft variable API (#23996)
This commit is contained in:
parent
c9e18346ce
commit
4b9812ce6a
1 changed files with 5 additions and 5 deletions
|
|
@ -163,11 +163,11 @@ class WorkflowVariableCollectionApi(Resource):
|
||||||
draft_var_srv = WorkflowDraftVariableService(
|
draft_var_srv = WorkflowDraftVariableService(
|
||||||
session=session,
|
session=session,
|
||||||
)
|
)
|
||||||
workflow_vars = draft_var_srv.list_variables_without_values(
|
workflow_vars = draft_var_srv.list_variables_without_values(
|
||||||
app_id=app_model.id,
|
app_id=app_model.id,
|
||||||
page=args.page,
|
page=args.page,
|
||||||
limit=args.limit,
|
limit=args.limit,
|
||||||
)
|
)
|
||||||
|
|
||||||
return workflow_vars
|
return workflow_vars
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue