mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
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,
|
||||
tool_type=ToolType.CUSTOM,
|
||||
folder_id=instance.get('folder_id', self.data.get('workspace_id')),
|
||||
template_id=instance.id,
|
||||
template_id=internal_tool.id,
|
||||
is_active=False
|
||||
)
|
||||
tool.save()
|
||||
|
|
|
|||
Loading…
Reference in New Issue