diff --git a/packages/server/src/automations/steps/createRow.ts b/packages/server/src/automations/steps/createRow.ts index 4b9010dd01..e71b1e4556 100644 --- a/packages/server/src/automations/steps/createRow.ts +++ b/packages/server/src/automations/steps/createRow.ts @@ -112,7 +112,7 @@ export async function run({ response: ctx.body, id: ctx.body._id, revision: ctx.body._rev, - success: ctx.status === 200, + success: !!ctx.body._id, } } catch (err) { return { diff --git a/packages/server/src/automations/steps/deleteRow.ts b/packages/server/src/automations/steps/deleteRow.ts index c4c42d8200..8c61d256d1 100644 --- a/packages/server/src/automations/steps/deleteRow.ts +++ b/packages/server/src/automations/steps/deleteRow.ts @@ -94,7 +94,7 @@ export async function run({ return { response: ctx.body, row: ctx.row, - success: ctx.status === 200, + success: ctx.body.ok, } } catch (err) { return { diff --git a/packages/server/src/automations/steps/updateRow.ts b/packages/server/src/automations/steps/updateRow.ts index 65b9bf93d3..ecdbdc68c8 100644 --- a/packages/server/src/automations/steps/updateRow.ts +++ b/packages/server/src/automations/steps/updateRow.ts @@ -166,7 +166,7 @@ export async function run({ response: ctx.message, id: ctx.body._id, revision: ctx.body._rev, - success: ctx.status === 200, + success: !!ctx.body._id, } } catch (err) { return {