mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 01:29:01 +08:00
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:
parent
230fa3286b
commit
5c166b3f40
@ -368,6 +368,7 @@ class ToolWorkflowProviderCreateApi(Resource):
|
|||||||
description=args["description"],
|
description=args["description"],
|
||||||
parameters=args["parameters"],
|
parameters=args["parameters"],
|
||||||
privacy_policy=args["privacy_policy"],
|
privacy_policy=args["privacy_policy"],
|
||||||
|
labels=args["labels"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -81,6 +81,10 @@ class WorkflowToolManageService:
|
|||||||
db.session.add(workflow_tool_provider)
|
db.session.add(workflow_tool_provider)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
|
if labels is not None:
|
||||||
|
ToolLabelManager.update_tool_labels(
|
||||||
|
ToolTransformService.workflow_provider_to_controller(workflow_tool_provider), labels
|
||||||
|
)
|
||||||
return {"result": "success"}
|
return {"result": "success"}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user