Merge pull request #7416 from Budibase/prevent-row-update-recursion-cloud-automations
Disable recursive row update on cloud automations
This commit is contained in:
commit
ce93826ce4
|
@ -35,8 +35,9 @@ export async function patch(ctx: any): Promise<any> {
|
|||
pickApi(tableId).patch(ctx)
|
||||
)
|
||||
ctx.status = 200
|
||||
ctx.eventEmitter &&
|
||||
if (!ctx.disableEmit && ctx.eventEmitter) {
|
||||
ctx.eventEmitter.emitRow(`row:update`, appId, row, table)
|
||||
}
|
||||
ctx.message = `${table.name} updated successfully.`
|
||||
ctx.body = row
|
||||
} catch (err) {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
const rowController = require("../../api/controllers/row")
|
||||
const automationUtils = require("../automationUtils")
|
||||
const { buildCtx } = require("./utils")
|
||||
const env = require("../../environment")
|
||||
|
||||
exports.definition = {
|
||||
name: "Update Row",
|
||||
|
@ -83,6 +84,7 @@ exports.run = async function ({ inputs, appId, emitter }) {
|
|||
rowId: inputs.rowId,
|
||||
tableId: tableId,
|
||||
},
|
||||
disableEmit: !env.SELF_HOSTED,
|
||||
})
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue