Add await to cache delete
This commit is contained in:
parent
c3bc39f600
commit
7049ef7381
|
@ -368,7 +368,7 @@ exports.destroy = async function (ctx) {
|
|||
const { id, rev } = ctx.params
|
||||
try {
|
||||
await db.remove(id, rev)
|
||||
cache.delete(CacheKeys.CHECKLIST)
|
||||
await cache.delete(CacheKeys.CHECKLIST)
|
||||
ctx.body = { message: "Config deleted successfully" }
|
||||
} catch (err) {
|
||||
ctx.throw(err.status, err)
|
||||
|
|
Loading…
Reference in New Issue