From 6699b202b455ac60258b8e93ec26119880989c17 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 13 Dec 2024 17:10:05 +0000 Subject: [PATCH] Fixing some automation requirements. --- packages/server/src/automations/steps/createRow.ts | 2 +- packages/server/src/automations/steps/deleteRow.ts | 2 +- packages/server/src/automations/steps/updateRow.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 {