mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-10 14:45:16 -05:00
Fix run block
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user