fix: update template_id assignment in tool creation logic
This commit is contained in:
parent
35d86c6484
commit
717c204d22
@ -475,7 +475,7 @@ class ToolSerializer(serializers.Serializer):
|
|||||||
scope=ToolScope.WORKSPACE,
|
scope=ToolScope.WORKSPACE,
|
||||||
tool_type=ToolType.CUSTOM,
|
tool_type=ToolType.CUSTOM,
|
||||||
folder_id=instance.get('folder_id', self.data.get('workspace_id')),
|
folder_id=instance.get('folder_id', self.data.get('workspace_id')),
|
||||||
template_id=instance.id,
|
template_id=internal_tool.id,
|
||||||
is_active=False
|
is_active=False
|
||||||
)
|
)
|
||||||
tool.save()
|
tool.save()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user