fix: tool id (#6544)

* fix: tool id

* fix: test

* fix: ts

* add test
This commit is contained in:
Archer
2026-03-11 23:15:17 +08:00
committed by GitHub
parent 960c8898cf
commit 38f6f9dd9f
30 changed files with 431 additions and 237 deletions
@@ -55,8 +55,7 @@ async function handler(
toolList,
name,
avatar,
headerSecret: formatedHeaderAuth,
toolId: ''
headerSecret: formatedHeaderAuth
})
],
session
@@ -28,8 +28,7 @@ async function handler(req: ApiRequestProps<UpdateMcpToolsBodyType>, res: ApiRes
toolList,
headerSecret: formatedHeaderAuth,
name: app.name,
avatar: app.avatar,
toolId: ''
avatar: app.avatar
});
await mongoSessionRun(async (session) => {
@@ -39,7 +39,7 @@ async function handler(
// System tool plugin
if (source === AppToolSourceEnum.systemTool) {
const item = await getSystemToolByIdAndVersionId(formatPluginId);
const item = await getSystemToolByIdAndVersionId(pluginId);
return {
total: 0,