website refactor

This commit is contained in:
2026-01-16 15:20:25 +01:00
parent 7e02fc3ea5
commit 37b1aa626c
325 changed files with 2167 additions and 2782 deletions

View File

@@ -6,12 +6,12 @@
*/
import type { Entity } from '@core/shared/domain';
import type { Entity } from '@core/shared/domain/Entity';
import { RacingDomainValidationError } from '../errors/RacingDomainError';
import { LeagueId } from './LeagueId';
import { DriverId } from './DriverId';
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;
@@ -115,6 +115,13 @@ export class Standing implements Entity<string> {
}
}
equals(other: Entity<string>): boolean {
if (!(other instanceof Standing)) {
return false;
}
return this.id === other.id;
}
/**
* Add points from a race result
*/