Function
findById
(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
Tested by
no test coverage detected