fix: tags could not be saved when the Workflow Tool was created (#11481)

Co-authored-by: zhaobs <zhaobs@cailian.net>
This commit is contained in:
zhaobingshuang
2024-12-09 14:38:02 +08:00
committed by GitHub
parent 230fa3286b
commit 5c166b3f40
2 changed files with 5 additions and 0 deletions

View File

@@ -81,6 +81,10 @@ class WorkflowToolManageService:
db.session.add(workflow_tool_provider)
db.session.commit()
if labels is not None:
ToolLabelManager.update_tool_labels(
ToolTransformService.workflow_provider_to_controller(workflow_tool_provider), labels
)
return {"result": "success"}
@classmethod