1
0
Fork 0
mirror of synced 2024-06-30 20:10:54 +12:00

Add await to cache delete

This commit is contained in:
Mel O'Hagan 2022-07-08 14:53:34 +01:00
parent e677cbef20
commit a72bcd9645

View file

@ -368,7 +368,7 @@ exports.destroy = async function (ctx) {
const { id, rev } = ctx.params const { id, rev } = ctx.params
try { try {
await db.remove(id, rev) await db.remove(id, rev)
cache.delete(CacheKeys.CHECKLIST) await cache.delete(CacheKeys.CHECKLIST)
ctx.body = { message: "Config deleted successfully" } ctx.body = { message: "Config deleted successfully" }
} catch (err) { } catch (err) {
ctx.throw(err.status, err) ctx.throw(err.status, err)