Explorar el Código

fix: HA reload group guest expiration

NGPixel hace 5 años
padre
commit
cf81ad910d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      server/core/auth.js

+ 1 - 1
server/core/auth.js

@@ -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')
   },
 
   /**