Browse Source

Linting.

pull/5134/head
mike12345567 4 years ago
parent
commit
7cb2cd2139
  1. 4
      packages/server/src/api/controllers/public/rows.ts

4
packages/server/src/api/controllers/public/rows.ts

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

Loading…
Cancel
Save