Fix cached session bug

This commit is contained in:
Matthew Knight 2026-02-17 12:14:34 -08:00
parent 1f3e1d3074
commit 4d95fddb1b
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ func (s *PGStore) Save(r *http.Request, w http.ResponseWriter, session *sessions
}
result := s.db.Where("token = ?", session.ID).Assign(models.Session{
UserID: userID,
Data: buf.Bytes(),
ExpiresAt: expiresAt,
}).FirstOrCreate(&dbSession)