MCPcopy Create free account
hub / github.com/ShipSecAI/studio / findById

Function findById

backend/src/workflows/__tests__/workflows.controller.spec.ts:133–140  ·  view source on GitHub ↗
(id: string, options: { organizationId?: string | null } = {})

Source from the content-addressed store, hash-verified

131 return filtered.length > 0 ? filtered[filtered.length - 1] : undefined;
132 },
133 async findById(id: string, options: { organizationId?: string | null } = {}) {
134 const record = versionStore.get(id);
135 if (!record) return undefined;
136 if (options.organizationId && record.organizationId !== options.organizationId) {
137 return undefined;
138 }
139 return record;
140 },
141 async findByWorkflowAndVersion(input: {
142 workflowId: string;
143 version: number;

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected