resolve todos in website and api

This commit is contained in:
2025-12-20 10:45:56 +01:00
parent 656ec62426
commit 7bbad511e2
62 changed files with 2036 additions and 611 deletions

View File

@@ -2,13 +2,23 @@ import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsDate, IsEnum } from 'class-validator';
import { Type } from 'class-transformer';
// TODO: protests are filed at race level but also managed on league level
/**
* ProtestDTO represents a protest that is filed against a specific race
* but is queried and managed in a league context.
*
* Both `leagueId` and `raceId` are exposed so that API consumers can
* clearly relate the protest back to the league admin view while still
* understanding which concrete race it belongs to.
*/
export class ProtestDTO {
@ApiProperty()
@IsString()
id: string;
@ApiProperty()
@IsString()
leagueId: string;
@ApiProperty()
@IsString()
raceId: string;