linting.
This commit is contained in:
parent
1238147be9
commit
5e17e6d61f
|
@ -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