Commit cf81ad91 authored by NGPixel's avatar NGPixel Committed by Nicolas Giard

fix: HA reload group guest expiration

parent 405187b8
...@@ -281,7 +281,7 @@ module.exports = { ...@@ -281,7 +281,7 @@ module.exports = {
async reloadGroups () { async reloadGroups () {
const groupsArray = await WIKI.models.groups.query() const groupsArray = await WIKI.models.groups.query()
this.groups = _.keyBy(groupsArray, 'id') this.groups = _.keyBy(groupsArray, 'id')
WIKI.auth.guest = await WIKI.models.users.getGuestUser() WIKI.auth.guest.cacheExpiration = moment.utc().subtract(1, 'd')
}, },
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment