Run row action as sync

This commit is contained in:
Adria Navarro 2024-09-03 16:51:56 +02:00
parent 8ec5f49f4a
commit 5ac5a63dc5
1 changed files with 10 additions and 6 deletions

View File

@ -216,11 +216,15 @@ export async function run(tableId: any, rowActionId: any, rowId: string) {
const automation = await sdk.automations.get(rowAction.automationId) 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(automation, { await triggers.externalTrigger(
automation,
{
fields: { fields: {
row, row,
table, table,
}, },
appId: context.getAppId(), appId: context.getAppId(),
}) },
{ getResponses: true }
)
} }