resolve todos in website and api
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user