switched to fully self contained docker
This commit is contained in:
@@ -216,7 +216,7 @@ func (s *Server) currentTechnician(r *http.Request) (*technician, error) {
|
||||
r.Context(),
|
||||
`SELECT gitea_login, display_name, csrf_token
|
||||
FROM technician_sessions
|
||||
WHERE token_hash = ? AND expires_at > UTC_TIMESTAMP(6)`,
|
||||
WHERE token_hash = ? AND expires_at > CURRENT_TIMESTAMP`,
|
||||
tokenHash[:],
|
||||
).Scan(&tech.Login, &tech.DisplayName, &tech.CSRFToken)
|
||||
if err != nil {
|
||||
@@ -224,7 +224,7 @@ func (s *Server) currentTechnician(r *http.Request) (*technician, error) {
|
||||
}
|
||||
_, _ = s.db.ExecContext(
|
||||
r.Context(),
|
||||
`UPDATE technician_sessions SET last_seen_at = UTC_TIMESTAMP(6)
|
||||
`UPDATE technician_sessions SET last_seen_at = CURRENT_TIMESTAMP
|
||||
WHERE token_hash = ?`,
|
||||
tokenHash[:],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user