mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 00:03:08 +00:00
refactor: remove dead flow rawscript helper
This commit is contained in:
@@ -1084,10 +1084,7 @@ export const flowTools: Tool<FlowAIChatHelpers>[] = [
|
||||
}
|
||||
|
||||
toolCallbacks.setToolStatus(toolId, {
|
||||
content:
|
||||
parsedModule === null
|
||||
? 'Preprocessor module removed'
|
||||
: 'Preprocessor module updated',
|
||||
content: parsedModule === null ? 'Preprocessor module removed' : 'Preprocessor module updated',
|
||||
result: 'Success'
|
||||
})
|
||||
return parsedModule === null
|
||||
@@ -1123,8 +1120,7 @@ export const flowTools: Tool<FlowAIChatHelpers>[] = [
|
||||
}
|
||||
|
||||
toolCallbacks.setToolStatus(toolId, {
|
||||
content:
|
||||
parsedModule === null ? 'Failure module removed' : 'Failure module updated',
|
||||
content: parsedModule === null ? 'Failure module removed' : 'Failure module updated',
|
||||
result: 'Success'
|
||||
})
|
||||
return parsedModule === null
|
||||
|
||||
@@ -35,18 +35,6 @@ export function getFlowModuleById(flow: FlowLike | undefined, id: string): FlowM
|
||||
return dfs(id, flow as OpenFlow, false)[0]
|
||||
}
|
||||
|
||||
export function getRawScriptModuleById(
|
||||
flow: FlowLike | undefined,
|
||||
id: string
|
||||
): (FlowModule & { value: RawScript }) | undefined {
|
||||
const module = getFlowModuleById(flow, id)
|
||||
if (!module || module.value.type !== 'rawscript') {
|
||||
return undefined
|
||||
}
|
||||
|
||||
return module as FlowModule & { value: RawScript }
|
||||
}
|
||||
|
||||
export function getMutableRawScriptModuleById(
|
||||
flow: FlowLike | undefined,
|
||||
id: string
|
||||
|
||||
Reference in New Issue
Block a user