Pass proper params
This commit is contained in:
parent
62eaa11ebb
commit
297ff58b67
|
@ -128,10 +128,7 @@ export async function externalTrigger(
|
|||
throw new Error("Automation is disabled")
|
||||
}
|
||||
if (
|
||||
automation.definition != null &&
|
||||
automation.definition.trigger != null &&
|
||||
automation.definition.trigger.stepId === definitions.APP.stepId &&
|
||||
automation.definition.trigger.stepId === "APP" &&
|
||||
automation.definition?.trigger?.stepId === definitions.APP.stepId &&
|
||||
!(await checkTestFlag(automation._id!))
|
||||
) {
|
||||
// values are likely to be submitted as strings, so we shall convert to correct type
|
||||
|
|
|
@ -163,7 +163,8 @@ export async function run(tableId: any, rowActionId: any, rowId: string) {
|
|||
|
||||
const row = await sdk.rows.find(tableId, rowId)
|
||||
await triggers.externalTrigger(automation, {
|
||||
fields: { row, table },
|
||||
row,
|
||||
table,
|
||||
appId: context.getAppId(),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue