We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79eaf18 commit 9b201d8Copy full SHA for 9b201d8
apps/sim/lib/execution/preprocessing.ts
@@ -97,6 +97,15 @@ export async function preprocessExecution(
97
})
98
99
// ========== STEP 1: Validate Workflow Exists ==========
100
+ if (prefetchedWorkflowRecord && prefetchedWorkflowRecord.id !== workflowId) {
101
+ logger.error(`[${requestId}] Prefetched workflow record ID mismatch`, {
102
+ expected: workflowId,
103
+ received: prefetchedWorkflowRecord.id,
104
+ })
105
+ throw new Error(
106
+ `Prefetched workflow record ID mismatch: expected ${workflowId}, got ${prefetchedWorkflowRecord.id}`
107
+ )
108
+ }
109
let workflowRecord: WorkflowRecord | null = prefetchedWorkflowRecord ?? null
110
if (!workflowRecord) {
111
try {
0 commit comments