feat: HA event handling + emitting

This commit is contained in:
NGPixel authored and Nicolas Giard committed 2020-04-19 22:47:02 -04:00
1 parent 6a00a5dbce
commit bd4263ecb2
14 files changed
+90 -20

No files matched your search

+1
View File
@@ -434,6 +434,7 @@ module.exports = {
async flushCache(obj, args, context) {
try {
await WIKI.models.pages.flushCache()
WIKI.events.outbound.emit('flushCache')
return {
responseResult: graphHelper.generateSuccess('Pages Cache has been flushed successfully.')
}