website refactor

This commit is contained in:
2026-01-16 18:21:06 +01:00
parent 2f53727702
commit 095885544b
146 changed files with 970 additions and 524 deletions

View File

@@ -23,7 +23,8 @@ export class ChampionshipStanding extends Entity<string> {
resultsDropped: number;
position: number;
}) {
super(props.id);
const id = `${props.seasonId}-${props.championshipId}-${props.participant.id}`;
super(id);
this.seasonId = props.seasonId;
this.championshipId = props.championshipId;
this.participant = props.participant;
@@ -31,7 +32,6 @@ export class ChampionshipStanding extends Entity<string> {
this.resultsCounted = ResultsCount.create(props.resultsCounted);
this.resultsDropped = ResultsCount.create(props.resultsDropped);
this.position = Position.create(props.position);
this.id = `${this.seasonId}-${this.championshipId}-${this.participant.id}`;
}
static create(props: {