Skip to content

Commit 3fb6e34

Browse files
hydrate block state on server side output
1 parent 9ae6209 commit 3fb6e34

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/sim/executor/execution/block-executor.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ export class BlockExecutor {
110110
}
111111

112112
resolvedInputs = this.resolver.resolveInputs(ctx, node.id, block.config.params, block)
113-
resolvedInputs = await hydrateCacheReferences(resolvedInputs)
114113

115114
if (blockLog) {
116115
blockLog.input = this.sanitizeInputsForLog(resolvedInputs)
@@ -169,6 +168,10 @@ export class BlockExecutor {
169168
})) as NormalizedBlockOutput
170169
}
171170

171+
normalizedOutput = (await hydrateCacheReferences(
172+
normalizedOutput as Record<string, unknown>
173+
)) as NormalizedBlockOutput
174+
172175
const duration = performance.now() - startTime
173176

174177
if (blockLog) {

0 commit comments

Comments
 (0)