This commit is contained in:
2025-12-11 00:57:32 +01:00
parent 1303a14493
commit 6a427eab57
112 changed files with 6148 additions and 2272 deletions

View File

@@ -125,6 +125,10 @@ class InMemoryResultRepository implements IResultRepository {
class InMemoryPenaltyRepository implements IPenaltyRepository {
private penalties: Penalty[] = [];
async findByRaceId(raceId: string): Promise<Penalty[]> {
return this.penalties.filter((p) => p.raceId === raceId);
}
async findByLeagueId(leagueId: string): Promise<Penalty[]> {
return this.penalties.filter((p) => p.leagueId === leagueId);
}