fix(postgres): map drivers

This commit is contained in:
Голиков Maximillian Антон
2026-10-02 09:12:21 +03:00
parent 45b3606259
commit 537ec40c8a
3 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ func (r *SessionRepo) Create(ctx context.Context, s *domain.Session) error {
Value: "",
}
}
return err
return mapError(err)
}
return nil
}
@@ -53,7 +53,7 @@ func (r *SessionRepo) GetByTokenHash(ctx context.Context, tokenHash []byte) (*do
func (r *SessionRepo) DeleteByTokenHash(ctx context.Context, tokenHash []byte) error {
const q = `DELETE FROM sessions WHERE token_hash = $1`
_, err := r.pool.Exec(ctx, q, tokenHash)
return err
return mapError(err)
}
var _ domain.SessionRepository = (*SessionRepo)(nil)