Clean code
This commit is contained in:
parent
713500febb
commit
1f01277ee8
|
@ -248,13 +248,8 @@ export async function run(
|
||||||
throw new HTTPError("Table not found", 404)
|
throw new HTTPError("Table not found", 404)
|
||||||
}
|
}
|
||||||
|
|
||||||
const rowActions = await getAll(tableId)
|
const { automationId } = await get(tableId, rowActionId)
|
||||||
const rowAction = rowActions?.actions[rowActionId]
|
const automation = await sdk.automations.get(automationId)
|
||||||
if (!rowAction) {
|
|
||||||
throw new HTTPError("Row action not found", 404)
|
|
||||||
}
|
|
||||||
|
|
||||||
const automation = await sdk.automations.get(rowAction.automationId)
|
|
||||||
|
|
||||||
const row = await sdk.rows.find(tableId, rowId)
|
const row = await sdk.rows.find(tableId, rowId)
|
||||||
await triggers.externalTrigger(
|
await triggers.externalTrigger(
|
||||||
|
|
Loading…
Reference in New Issue