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

Co-authored-by: zhaobs <[email protected]>
This commit is contained in:
zhaobingshuang
2024-12-16 10:59:56 +08:00
committed by Joel
co-authored by zhaobs
parent e11a876f79
commit 83a5dcffac
2 changed files with 5 additions and 0 deletions
@@ -368,6 +368,7 @@ class ToolWorkflowProviderCreateApi(Resource):
description=args["description"],
parameters=args["parameters"],
privacy_policy=args["privacy_policy"],
labels=args["labels"],
)
@@ -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