refactor: use current time to set new expiry

This commit is contained in:
Stavros
2025-12-24 14:52:44 +02:00
parent d1c41a116b
commit 4275aa684a

View File

@@ -244,7 +244,7 @@ func (auth *AuthService) RefreshSessionCookie(c *gin.Context) error {
return nil
}
newExpiry := session.Expiry + int64(time.Hour.Seconds())
newExpiry := currentTime + int64(time.Hour.Seconds())
_, err = gorm.G[model.Session](auth.database).Where("uuid = ?", cookie).Updates(c, model.Session{
Expiry: newExpiry,