Fix triggering automations
This commit is contained in:
parent
d1c4c664b3
commit
4469e38ab8
|
@ -216,11 +216,11 @@ const deleteRowHandler = async action => {
|
||||||
const triggerAutomationHandler = async action => {
|
const triggerAutomationHandler = async action => {
|
||||||
const { fields, notificationOverride, timeout } = action.parameters
|
const { fields, notificationOverride, timeout } = action.parameters
|
||||||
try {
|
try {
|
||||||
const result = await API.triggerAutomation({
|
const result = await API.triggerAutomation(
|
||||||
automationId: action.parameters.automationId,
|
action.parameters.automationId,
|
||||||
fields,
|
fields,
|
||||||
timeout,
|
timeout
|
||||||
})
|
)
|
||||||
|
|
||||||
// Value will exist if automation is synchronous, so return it.
|
// Value will exist if automation is synchronous, so return it.
|
||||||
if (result.value) {
|
if (result.value) {
|
||||||
|
|
Loading…
Reference in New Issue