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:
commit
9a634fc697
|
@ -698,6 +698,8 @@ describe("/rowsActions", () => {
|
||||||
inputs: null,
|
inputs: null,
|
||||||
outputs: {
|
outputs: {
|
||||||
fields: {},
|
fields: {},
|
||||||
|
id: rowId,
|
||||||
|
revision: (await config.api.row.get(tableId, rowId))._rev,
|
||||||
row: await config.api.row.get(tableId, rowId),
|
row: await config.api.row.get(tableId, rowId),
|
||||||
table: {
|
table: {
|
||||||
...(await config.api.table.get(tableId)),
|
...(await config.api.table.get(tableId)),
|
||||||
|
|
|
@ -220,6 +220,8 @@ export async function run(tableId: any, rowActionId: any, rowId: string) {
|
||||||
automation,
|
automation,
|
||||||
{
|
{
|
||||||
fields: {
|
fields: {
|
||||||
|
id: row._id,
|
||||||
|
revision: row._rev,
|
||||||
row,
|
row,
|
||||||
table,
|
table,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue