Skip to content

Commit 717c204

Browse files
committed
fix: update template_id assignment in tool creation logic
1 parent 35d86c6 commit 717c204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/tools/serializers/tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def add(self, instance, with_valid=True):
475475
scope=ToolScope.WORKSPACE,
476476
tool_type=ToolType.CUSTOM,
477477
folder_id=instance.get('folder_id', self.data.get('workspace_id')),
478-
template_id=instance.id,
478+
template_id=internal_tool.id,
479479
is_active=False
480480
)
481481
tool.save()

0 commit comments

Comments
 (0)