Skip to content

Commit 40250a2

Browse files
committed
fix: import randomUUID from node:crypto
1 parent 701a429 commit 40250a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/sim/executor/handlers/workflow/workflow-handler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { randomUUID } from 'node:crypto'
12
import { createLogger } from '@sim/logger'
23
import { buildNextCallChain, validateCallChain } from '@/lib/execution/call-chain'
34
import { snapshotService } from '@/lib/logs/execution/snapshot/service'
@@ -81,7 +82,7 @@ export class WorkflowBlockHandler implements BlockHandler {
8182

8283
// Unique ID per invocation — used to correlate child block events with this specific
8384
// workflow block execution, preventing cross-iteration child mixing in loop contexts.
84-
const instanceId = crypto.randomUUID()
85+
const instanceId = randomUUID()
8586

8687
const childCallChain = buildNextCallChain(ctx.callChain || [], workflowId)
8788
const depthError = validateCallChain(childCallChain)

0 commit comments

Comments
 (0)