website refactor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user