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")
|
throw new Error("Automation is disabled")
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
automation.definition != null &&
|
automation.definition?.trigger?.stepId === definitions.APP.stepId &&
|
||||||
automation.definition.trigger != null &&
|
|
||||||
automation.definition.trigger.stepId === definitions.APP.stepId &&
|
|
||||||
automation.definition.trigger.stepId === "APP" &&
|
|
||||||
!(await checkTestFlag(automation._id!))
|
!(await checkTestFlag(automation._id!))
|
||||||
) {
|
) {
|
||||||
// values are likely to be submitted as strings, so we shall convert to correct type
|
// 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)
|
const row = await sdk.rows.find(tableId, rowId)
|
||||||
await triggers.externalTrigger(automation, {
|
await triggers.externalTrigger(automation, {
|
||||||
fields: { row, table },
|
row,
|
||||||
|
table,
|
||||||
appId: context.getAppId(),
|
appId: context.getAppId(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue