( workflowId: string )
| 51 | } |
| 52 | |
| 53 | export async function assertActiveWorkflowContext( |
| 54 | workflowId: string |
| 55 | ): Promise<ActiveWorkflowContext> { |
| 56 | const context = await getActiveWorkflowContext(workflowId) |
| 57 | if (!context) { |
| 58 | throw new Error(`Active workflow not found: ${workflowId}`) |
| 59 | } |
| 60 | return context |
| 61 | } |
| 62 | |
| 63 | type WorkflowRecord = typeof workflow.$inferSelect |
| 64 |
nothing calls this directly
no test coverage detected