getDemoFlowById function infrastructure exported
Last updated: 2026-03-05T10:53:28.858Z
Location
Metrics
LOC: 6
Complexity: 2
Params: 2
Signature
getDemoFlowById(
flowId: string,
): : Promise<FlowScript | null>
Summary
Retrieve a single flow by ID. Returns null if not found.
Source Code
export async function getDemoFlowById(
flowId: string,
): Promise<FlowScript | null> {
const flows = await getDemoFlows();
return flows.find((f) => f.id === flowId) ?? null;
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| getDemoFlows | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| makeFlow | uses |