linting.
This commit is contained in:
parent
91d9e4d41e
commit
a43777c78b
|
@ -66,8 +66,7 @@ exports.patch = async function(ctx) {
|
||||||
row._rev = response.rev
|
row._rev = response.rev
|
||||||
row.type = "row"
|
row.type = "row"
|
||||||
|
|
||||||
ctx.eventEmitter &&
|
ctx.eventEmitter && ctx.eventEmitter.emitRow(`row:update`, appId, row, table)
|
||||||
ctx.eventEmitter.emitRow(`row:update`, appId, row, table)
|
|
||||||
ctx.body = row
|
ctx.body = row
|
||||||
ctx.status = 200
|
ctx.status = 200
|
||||||
ctx.message = `${table.name} updated successfully.`
|
ctx.message = `${table.name} updated successfully.`
|
||||||
|
@ -133,8 +132,7 @@ exports.save = async function(ctx) {
|
||||||
const response = await db.post(row)
|
const response = await db.post(row)
|
||||||
row._rev = response.rev
|
row._rev = response.rev
|
||||||
|
|
||||||
ctx.eventEmitter &&
|
ctx.eventEmitter && ctx.eventEmitter.emitRow(`row:save`, appId, row, table)
|
||||||
ctx.eventEmitter.emitRow(`row:save`, appId, row, table)
|
|
||||||
ctx.body = row
|
ctx.body = row
|
||||||
ctx.status = 200
|
ctx.status = 200
|
||||||
ctx.message = `${table.name} created successfully`
|
ctx.message = `${table.name} created successfully`
|
||||||
|
|
Loading…
Reference in New Issue