wip
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user