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

Function createTriggerObject

apps/sim/lib/logs/execution/logging-factory.ts:15–25  ·  view source on GitHub ↗
(
  type: ExecutionTrigger['type'],
  additionalData?: Record<string, unknown>
)

Source from the content-addressed store, hash-verified

13} from '@/lib/workflows/persistence/utils'
14
15export function createTriggerObject(
16 type: ExecutionTrigger['type'],
17 additionalData?: Record<string, unknown>
18): ExecutionTrigger {
19 return {
20 type,
21 source: type,
22 timestamp: new Date().toISOString(),
23 ...(additionalData && { data: additionalData }),
24 }
25}
26
27export function createEnvironmentObject(
28 workflowId: string,

Callers 3

startMethod · 0.90
safeStartMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected