Other steps.

This commit is contained in:
mike12345567 2025-01-13 12:30:19 +00:00
parent 87e7245aee
commit 0d6474a38a
3 changed files with 5 additions and 3 deletions

View File

@ -97,7 +97,7 @@ export async function run({
const ctx: any = buildCtx(appId, emitter, { const ctx: any = buildCtx(appId, emitter, {
body: inputs.row, body: inputs.row,
params: { params: {
tableId: inputs.row.tableId, tableId: decodeURIComponent(inputs.row.tableId),
}, },
}) })
try { try {

View File

@ -85,7 +85,7 @@ export async function run({
_rev: inputs.revision, _rev: inputs.revision,
}, },
params: { params: {
tableId: inputs.tableId, tableId: decodeURIComponent(inputs.tableId),
}, },
}) })

View File

@ -90,6 +90,8 @@ export async function run({
} }
} }
const tableId = inputs.row.tableId const tableId = inputs.row.tableId
? decodeURIComponent(inputs.row.tableId)
: inputs.row.tableId
// Base update // Base update
let rowUpdate: Record<string, any> let rowUpdate: Record<string, any>
@ -157,7 +159,7 @@ export async function run({
}, },
params: { params: {
rowId: inputs.rowId, rowId: inputs.rowId,
tableId, tableId: tableId,
}, },
}) })
await rowController.patch(ctx) await rowController.patch(ctx)