MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getAllNodeConfigs

Function getAllNodeConfigs

packages/server/src/services/node-configs/index.ts:8–20  ·  view source on GitHub ↗
(requestBody: any)

Source from the content-addressed store, hash-verified

6import { getErrorMessage } from '../../errors/utils'
7
8const getAllNodeConfigs = async (requestBody: any) => {
9 try {
10 const appServer = getRunningExpressApp()
11 const nodes = [{ data: requestBody }] as IReactFlowNode[]
12 const dbResponse = findAvailableConfigs(nodes, appServer.nodesPool.componentCredentials)
13 return dbResponse
14 } catch (error) {
15 throw new InternalFlowiseError(
16 StatusCodes.INTERNAL_SERVER_ERROR,
17 `Error: nodeConfigsService.getAllNodeConfigs - ${getErrorMessage(error)}`
18 )
19 }
20}
21
22export default {
23 getAllNodeConfigs

Callers

nothing calls this directly

Calls 3

getRunningExpressAppFunction · 0.90
findAvailableConfigsFunction · 0.90
getErrorMessageFunction · 0.90

Tested by

no test coverage detected