Skip to content

Commit a6b8cc4

Browse files
committed
fix: add scope parameter to tool serializer in tool.py
1 parent 317db5a commit a6b8cc4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/tools/serializers/tool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ def add(self, instance, with_valid=True):
472472
scope=ToolScope.WORKSPACE,
473473
tool_type=ToolType.CUSTOM,
474474
folder_id=instance.get('folder_id', self.data.get('workspace_id')),
475+
template_id=instance.id,
475476
is_active=False
476477
)
477478
tool.save()

0 commit comments

Comments
 (0)