Enha: load state instead of room

This commit is contained in:
Grail Finder
2025-05-07 06:06:21 +03:00
parent 5e92523dcd
commit 3eb54cffff
3 changed files with 15 additions and 7 deletions

View File

@ -77,6 +77,7 @@ func GetSession(next http.Handler) http.Handler {
return
}
userSession, err := cacheGetSession(sessionToken)
log.Debug("userSession from cache", "us", userSession)
if err != nil {
msg := "auth failed; session does not exists"
err = errors.New(msg)