Merge pull request #14701 from Budibase/fixes/row-action-id-issue

Fixes an issue where id and revision weren't passed to row action automations
This commit is contained in:
Peter Clement 2024-10-04 11:26:31 +01:00 committed by GitHub
commit 9a634fc697
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -698,6 +698,8 @@ describe("/rowsActions", () => {
inputs: null,
outputs: {
fields: {},
id: rowId,
revision: (await config.api.row.get(tableId, rowId))._rev,
row: await config.api.row.get(tableId, rowId),
table: {
...(await config.api.table.get(tableId)),

View File

@ -220,6 +220,8 @@ export async function run(tableId: any, rowActionId: any, rowId: string) {
automation,
{
fields: {
id: row._id,
revision: row._rev,
row,
table,
},