MCPcopy
hub / github.com/FlowiseAI/Flowise / getTelemetryFlowObj

Function getTelemetryFlowObj

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

Source from the content-addressed store, hash-verified

1941 * @param {IReactFlowEdge[]} edges
1942 */
1943export const getTelemetryFlowObj = (nodes: IReactFlowNode[], edges: IReactFlowEdge[]) => {
1944 const nodeData = nodes.map((node) => node.id)
1945 const edgeData = edges.map((edge) => ({ source: edge.source, target: edge.target }))
1946 return { nodes: nodeData, edges: edgeData }
1947}
1948
1949/**
1950 * 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