Parcourir la source

fix: HA reload group guest expiration

NGPixel il y a 5 ans
Parent
commit
cf81ad910d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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')
   },
 
   /**