MCPcopy Index your code
hub / github.com/simstudioai/sim / safeTriggerOutputs

Function safeTriggerOutputs

apps/sim/lib/workflows/triggers/run-options.ts:169–176  ·  view source on GitHub ↗
(triggerId: string)

Source from the content-addressed store, hash-verified

167}
168
169function safeTriggerOutputs(triggerId: string): Record<string, unknown> | undefined {
170 try {
171 const trigger = getTrigger(triggerId)
172 return trigger?.outputs as Record<string, unknown> | undefined
173 } catch {
174 return undefined
175 }
176}
177
178function extractEventMockPayload(candidate: StartBlockCandidate<TriggerBlockLike>): unknown {
179 const triggerId = resolveEventTriggerId(candidate.block)

Callers 1

buildTriggerRunOptionFunction · 0.85

Calls 1

getTriggerFunction · 0.90

Tested by

no test coverage detected