Skip to content

Commit bea5dfd

Browse files
committed
fix: type error
1 parent b639717 commit bea5dfd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/service/core/app/plugin/controller.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const getSystemPluginByIdAndVersionId = async (
112112
}
113113

114114
const version = versionId
115-
? (versionList.find((item) => item.value === versionId) ?? versionList[0])
115+
? versionList.find((item) => item.value === versionId) ?? versionList[0]
116116
: versionList[0];
117117
const lastVersion = versionList[0];
118118

@@ -271,7 +271,7 @@ export async function getChildAppPreviewNode({
271271
]
272272
: [])
273273
]
274-
: (app.inputs ?? []),
274+
: app.inputs ?? [],
275275
outputs: app.outputs ?? [],
276276
toolConfig: {
277277
...(app.isFolder
@@ -545,6 +545,7 @@ export const getSystemTools = async (): Promise<SystemPluginTemplateItemType[]>
545545
nodes: [],
546546
edges: []
547547
},
548+
versionList,
548549
inputs,
549550
outputs,
550551
inputList:

packages/service/core/workflow/dispatch/child/runTool.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ export const dispatchRunTool = async (props: RunToolProps): Promise<RunToolRespo
198198
toolRes: result,
199199
moduleLogo: avatar
200200
},
201-
[DispatchNodeResponseKeyEnum.toolResponses]: result,
202-
[NodeOutputKeyEnum.rawResponse]: result
201+
[DispatchNodeResponseKeyEnum.toolResponses]: result
203202
};
204203
} else {
205204
// mcp tool (old version compatible)

packages/service/core/workflow/dispatch/plugin/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const dispatchRunPlugin = async (props: RunPluginProps): Promise<RunPlugi
8181
per: ReadPermissionVal
8282
});
8383

84-
plugin = await getChildAppRuntimeById(pluginId, version);
84+
plugin = await getChildAppRuntimeById({ id: pluginId, versionId: version });
8585

8686
const outputFilterMap =
8787
plugin.nodes

0 commit comments

Comments
 (0)