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

Function getTelemetryFlowObj

packages/server/src/utils/index.ts:1952–1956  ·  view source on GitHub ↗
(nodes: IReactFlowNode[], edges: IReactFlowEdge[])

Source from the content-addressed store, hash-verified

1950 * @param {IReactFlowEdge[]} edges
1951 */
1952export const getTelemetryFlowObj = (nodes: IReactFlowNode[], edges: IReactFlowEdge[]) => {
1953 const nodeData = nodes.map((node) => node.id)
1954 const edgeData = edges.map((edge) => ({ source: edge.source, target: edge.target }))
1955 return { nodes: nodeData, edges: edgeData }
1956}
1957
1958/**
1959 * Get app current version

Callers 4

executeUpsertFunction · 0.90
executeFlowFunction · 0.90
saveChatflowFunction · 0.90
executeAgentFlowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected