This commit is contained in:
mike12345567 2022-03-25 12:15:42 +00:00
parent 26a29fef67
commit 793cb0ca60
1 changed files with 1 additions and 3 deletions

View File

@ -59,9 +59,7 @@ export async function update(ctx: any, next: any) {
export async function destroy(ctx: any, next: any) { export async function destroy(ctx: any, next: any) {
// set the body as expected, with the _id and _rev fields // set the body as expected, with the _id and _rev fields
ctx.request.body = await addRev( ctx.request.body = await addRev(fixRow({ _id: ctx.params.rowId }, ctx.params))
fixRow({ _id: ctx.params.rowId }, ctx.params)
)
await rowController.destroy(ctx) await rowController.destroy(ctx)
// destroy controller doesn't currently return the row as the body, need to adjust this // destroy controller doesn't currently return the row as the body, need to adjust this
// in the public API to be correct // in the public API to be correct