diff --git a/packages/server/src/automations/steps/createRow.ts b/packages/server/src/automations/steps/createRow.ts index e71b1e4556..cd16be2cf3 100644 --- a/packages/server/src/automations/steps/createRow.ts +++ b/packages/server/src/automations/steps/createRow.ts @@ -97,7 +97,7 @@ export async function run({ const ctx: any = buildCtx(appId, emitter, { body: inputs.row, params: { - tableId: inputs.row.tableId, + tableId: decodeURIComponent(inputs.row.tableId), }, }) try { diff --git a/packages/server/src/automations/steps/deleteRow.ts b/packages/server/src/automations/steps/deleteRow.ts index 8c61d256d1..6b8a68eeb8 100644 --- a/packages/server/src/automations/steps/deleteRow.ts +++ b/packages/server/src/automations/steps/deleteRow.ts @@ -85,7 +85,7 @@ export async function run({ _rev: inputs.revision, }, params: { - tableId: inputs.tableId, + tableId: decodeURIComponent(inputs.tableId), }, }) diff --git a/packages/server/src/automations/steps/updateRow.ts b/packages/server/src/automations/steps/updateRow.ts index ecdbdc68c8..552d846f18 100644 --- a/packages/server/src/automations/steps/updateRow.ts +++ b/packages/server/src/automations/steps/updateRow.ts @@ -90,6 +90,8 @@ export async function run({ } } const tableId = inputs.row.tableId + ? decodeURIComponent(inputs.row.tableId) + : inputs.row.tableId // Base update let rowUpdate: Record @@ -157,7 +159,7 @@ export async function run({ }, params: { rowId: inputs.rowId, - tableId, + tableId: tableId, }, }) await rowController.patch(ctx)