Fix run block

This commit is contained in:
Siddharth Ganesan
2026-02-09 16:31:07 -08:00
parent 7153141ee4
commit 7670cdfadf

View File

@@ -283,7 +283,7 @@ export async function POST(req: NextRequest, { params }: { params: Promise<{ id:
getLatestExecutionState,
} = await import('@/lib/workflows/executor/execution-state')
const snapshot = runFromBlock.executionId === 'latest'
? await getLatestExecutionState(id)
? await getLatestExecutionState(workflowId)
: await getExecutionState(runFromBlock.executionId)
if (!snapshot) {
return NextResponse.json(