fix: add scope column to tool and folder queries in list_tool.sql

This commit is contained in:
CaptainB 2025-06-19 19:15:46 +08:00
parent 4e87048053
commit c9bdb9ca8a

View File

@ -3,6 +3,7 @@ from (select tool."id"::text,
tool."name",
tool."desc",
tool."tool_type",
tool."scope",
'tool' as "resource_type",
tool."workspace_id",
tool."folder_id",
@ -19,6 +20,7 @@ from (select tool."id"::text,
tool_folder."name",
tool_folder."desc",
'folder' as "tool_type",
'' as scope,
'folder' as "resource_type",
tool_folder."workspace_id",
tool_folder."parent_id" as "folder_id",