MCPcopy Index your code
hub / github.com/simstudioai/sim / assertActiveWorkflowContext

Function assertActiveWorkflowContext

packages/platform-authz/src/workflow.ts:53–61  ·  view source on GitHub ↗
(
  workflowId: string
)

Source from the content-addressed store, hash-verified

51}
52
53export 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
63type WorkflowRecord = typeof workflow.$inferSelect
64

Callers

nothing calls this directly

Calls 1

getActiveWorkflowContextFunction · 0.85

Tested by

no test coverage detected