From 6a43597dd3f1e138b467d039c71fe539322f6d4e Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 26 Aug 2024 17:07:02 +0200 Subject: [PATCH] Update paths --- packages/server/src/api/controllers/rowAction/run.ts | 4 ++-- packages/server/src/api/routes/rowAction.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/api/controllers/rowAction/run.ts b/packages/server/src/api/controllers/rowAction/run.ts index c4b6a276bf..f17b9594a7 100644 --- a/packages/server/src/api/controllers/rowAction/run.ts +++ b/packages/server/src/api/controllers/rowAction/run.ts @@ -2,9 +2,9 @@ import { RowActionTriggerRequest, Ctx } from "@budibase/types" import sdk from "../../../sdk" export async function run(ctx: Ctx) { - const { tableId, actionId } = ctx.params + const { sourceId, actionId } = ctx.params const { rowId } = ctx.request.body - await sdk.rowActions.run(tableId, actionId, rowId) + await sdk.rowActions.run(sourceId, actionId, rowId) ctx.status = 200 } diff --git a/packages/server/src/api/routes/rowAction.ts b/packages/server/src/api/routes/rowAction.ts index 34b4ee9fe3..846e568420 100644 --- a/packages/server/src/api/routes/rowAction.ts +++ b/packages/server/src/api/routes/rowAction.ts @@ -63,7 +63,7 @@ router // Other endpoints .post( - "/api/tables/:tableId/actions/:actionId/trigger", + "/api/tables/:sourceId/actions/:actionId/trigger", rowTriggerValidator(), authorizedResource(PermissionType.TABLE, PermissionLevel.READ, "tableId"), rowActionController.run