Fix rowAction.spec.ts.

This commit is contained in:
Sam Rose 2025-02-17 09:27:12 +00:00
parent 0c0cdf947b
commit a446401fc5
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

@ -312,13 +312,15 @@ class Orchestrator {
const job = cloneDeep(this.job)
delete job.data.event.appId
delete job.data.event.metadata
if (!job.data.event.timestamp) {
if (this.isCron() && !job.data.event.timestamp) {
job.data.event.timestamp = Date.now()
}
const trigger: AutomationTriggerResult = {
id: job.data.automation.definition.trigger.id,
stepId: job.data.automation.definition.trigger.stepId,
inputs: null,
outputs: job.data.event,
}
const result: AutomationResults = { trigger, steps: [trigger] }

View File

@ -211,7 +211,7 @@ export interface AutomationStepResult {
export interface AutomationTriggerResult {
id: string
stepId: AutomationTriggerStepId
inputs?: Record<string, any>
inputs?: Record<string, any> | null
outputs: Record<string, any>
}