website refactor
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import type { Entity } from '@core/shared/domain/Entity';
|
||||
import { Entity } from '@core/shared/domain/Entity';
|
||||
import { RacingDomainValidationError } from '../../errors/RacingDomainError';
|
||||
import type { ParticipantRef } from '../../types/ParticipantRef';
|
||||
import { Points } from '../../value-objects/Points';
|
||||
import { Position } from './Position';
|
||||
import { ResultsCount } from './ResultsCount';
|
||||
|
||||
export class ChampionshipStanding implements Entity<string> {
|
||||
readonly id: string;
|
||||
export class ChampionshipStanding extends Entity<string> {
|
||||
readonly seasonId: string;
|
||||
readonly championshipId: string;
|
||||
readonly participant: ParticipantRef;
|
||||
@@ -24,6 +23,7 @@ export class ChampionshipStanding implements Entity<string> {
|
||||
resultsDropped: number;
|
||||
position: number;
|
||||
}) {
|
||||
super(props.id);
|
||||
this.seasonId = props.seasonId;
|
||||
this.championshipId = props.championshipId;
|
||||
this.participant = props.participant;
|
||||
|
||||
Reference in New Issue
Block a user