website refactor

This commit is contained in:
2026-01-16 16:46:57 +01:00
parent 37b1aa626c
commit 2f53727702
445 changed files with 1160 additions and 1150 deletions

View File

@@ -6,15 +6,14 @@
*/
import type { Entity } from '@core/shared/domain/Entity';
import { Entity } from '@core/shared/domain/Entity';
import { RacingDomainValidationError } from '../errors/RacingDomainError';
import { Points } from '../value-objects/Points';
import { Position } from './championship/Position';
import { DriverId } from './DriverId';
import { LeagueId } from './LeagueId';
export class Standing implements Entity<string> {
readonly id: string;
export class Standing extends Entity<string> {
readonly leagueId: LeagueId;
readonly driverId: DriverId;
readonly points: Points;
@@ -31,7 +30,8 @@ export class Standing implements Entity<string> {
position: Position;
racesCompleted: number;
}) {
this.id = props.id;
super(props.id);
this.leagueId = props.leagueId;
this.driverId = props.driverId;
this.points = props.points;