fix: HA reload group guest expiration

This commit is contained in:
NGPixel 2020-04-19 22:44:51 -04:00 committed by Nicolas Giard
parent 405187b8e0
commit cf81ad910d

View File

@ -281,7 +281,7 @@ module.exports = {
async reloadGroups () {
const groupsArray = await WIKI.models.groups.query()
this.groups = _.keyBy(groupsArray, 'id')
WIKI.auth.guest = await WIKI.models.users.getGuestUser()
WIKI.auth.guest.cacheExpiration = moment.utc().subtract(1, 'd')
},
/**