more naming

This commit is contained in:
Peter Clement 2024-01-15 10:16:13 +00:00
parent 394a8c4d94
commit 41051a8d69
1 changed files with 21 additions and 18 deletions

View File

@ -10,6 +10,7 @@ import {
} from "@budibase/types"
import * as triggers from "../triggers"
import { db as dbCore, context } from "@budibase/backend-core"
import { features } from "@budibase/pro"
export const definition: AutomationStepSchema = {
name: "Trigger an automation",
@ -62,6 +63,7 @@ export const definition: AutomationStepSchema = {
export async function run({ inputs }: AutomationStepInput) {
const { automationId, ...fieldParams } = inputs.automation
if (await features.isTriggerAutomationRunEnabled()) {
if (!inputs.automation.automationId) {
return {
success: false,
@ -84,4 +86,5 @@ export async function run({ inputs }: AutomationStepInput) {
value: response.steps,
}
}
}
}