Fix rowAction.spec.ts.
This commit is contained in:
parent
0c0cdf947b
commit
a446401fc5
|
@ -312,13 +312,15 @@ class Orchestrator {
|
||||||
const job = cloneDeep(this.job)
|
const job = cloneDeep(this.job)
|
||||||
delete job.data.event.appId
|
delete job.data.event.appId
|
||||||
delete job.data.event.metadata
|
delete job.data.event.metadata
|
||||||
if (!job.data.event.timestamp) {
|
|
||||||
|
if (this.isCron() && !job.data.event.timestamp) {
|
||||||
job.data.event.timestamp = Date.now()
|
job.data.event.timestamp = Date.now()
|
||||||
}
|
}
|
||||||
|
|
||||||
const trigger: AutomationTriggerResult = {
|
const trigger: AutomationTriggerResult = {
|
||||||
id: job.data.automation.definition.trigger.id,
|
id: job.data.automation.definition.trigger.id,
|
||||||
stepId: job.data.automation.definition.trigger.stepId,
|
stepId: job.data.automation.definition.trigger.stepId,
|
||||||
|
inputs: null,
|
||||||
outputs: job.data.event,
|
outputs: job.data.event,
|
||||||
}
|
}
|
||||||
const result: AutomationResults = { trigger, steps: [trigger] }
|
const result: AutomationResults = { trigger, steps: [trigger] }
|
||||||
|
|
|
@ -211,7 +211,7 @@ export interface AutomationStepResult {
|
||||||
export interface AutomationTriggerResult {
|
export interface AutomationTriggerResult {
|
||||||
id: string
|
id: string
|
||||||
stepId: AutomationTriggerStepId
|
stepId: AutomationTriggerStepId
|
||||||
inputs?: Record<string, any>
|
inputs?: Record<string, any> | null
|
||||||
outputs: Record<string, any>
|
outputs: Record<string, any>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue