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