Update paths
This commit is contained in:
parent
dd14d0b646
commit
6a43597dd3
|
@ -2,9 +2,9 @@ import { RowActionTriggerRequest, Ctx } from "@budibase/types"
|
||||||
import sdk from "../../../sdk"
|
import sdk from "../../../sdk"
|
||||||
|
|
||||||
export async function run(ctx: Ctx<RowActionTriggerRequest, void>) {
|
export async function run(ctx: Ctx<RowActionTriggerRequest, void>) {
|
||||||
const { tableId, actionId } = ctx.params
|
const { sourceId, actionId } = ctx.params
|
||||||
const { rowId } = ctx.request.body
|
const { rowId } = ctx.request.body
|
||||||
|
|
||||||
await sdk.rowActions.run(tableId, actionId, rowId)
|
await sdk.rowActions.run(sourceId, actionId, rowId)
|
||||||
ctx.status = 200
|
ctx.status = 200
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ router
|
||||||
|
|
||||||
// Other endpoints
|
// Other endpoints
|
||||||
.post(
|
.post(
|
||||||
"/api/tables/:tableId/actions/:actionId/trigger",
|
"/api/tables/:sourceId/actions/:actionId/trigger",
|
||||||
rowTriggerValidator(),
|
rowTriggerValidator(),
|
||||||
authorizedResource(PermissionType.TABLE, PermissionLevel.READ, "tableId"),
|
authorizedResource(PermissionType.TABLE, PermissionLevel.READ, "tableId"),
|
||||||
rowActionController.run
|
rowActionController.run
|
||||||
|
|
Loading…
Reference in New Issue