more naming
This commit is contained in:
parent
394a8c4d94
commit
41051a8d69
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue