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

Method findById

backend/src/workflows/workflows.service.ts:360–368  ·  view source on GitHub ↗
(id: string, auth?: AuthContext | null)

Source from the content-addressed store, hash-verified

358 }
359
360 async findById(id: string, auth?: AuthContext | null): Promise<ServiceWorkflowResponse> {
361 const organizationId = this.requireOrganizationId(auth);
362 const record = await this.repository.findById(id, { organizationId });
363 if (!record) {
364 throw new NotFoundException(`Workflow ${id} not found`);
365 }
366 const version = await this.versionRepository.findLatestByWorkflowId(id, { organizationId });
367 return this.buildWorkflowResponse(record, version ?? null);
368 }
369
370 private buildWorkflowResponse(
371 record: WorkflowRecord,

Callers 10

findOneMethod · 0.45
getRuntimeInputsMethod · 0.45
downloadMethod · 0.45
buildRunSummaryMethod · 0.45
commitMethod · 0.45
prepareRunPayloadMethod · 0.45
getWorkflowVersionMethod · 0.45
getFlowContextMethod · 0.45

Calls 3

requireOrganizationIdMethod · 0.95
buildWorkflowResponseMethod · 0.95

Tested by

no test coverage detected