website cleanup

This commit is contained in:
2025-12-25 00:19:36 +01:00
parent d78854a4c6
commit 9486455b9e
82 changed files with 1223 additions and 363 deletions

View File

@@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsArray, ValidateNested } from 'class-validator';
import { IsArray, ValidateNested, IsObject } from 'class-validator';
import { Type } from 'class-transformer';
import { DriverDTO } from '../../driver/dtos/DriverDTO';
import { RaceDTO } from '../../race/dtos/RaceDTO';
@@ -12,13 +12,15 @@ export class LeagueAdminProtestsDTO {
@Type(() => ProtestDTO)
protests!: ProtestDTO[];
@ApiProperty({ type: () => RaceDTO })
@ApiProperty({ type: Object })
@IsObject()
@ValidateNested()
@Type(() => RaceDTO)
racesById!: { [raceId: string]: RaceDTO };
racesById!: Record<string, RaceDTO>;
@ApiProperty({ type: () => DriverDTO })
@ApiProperty({ type: Object })
@IsObject()
@ValidateNested()
@Type(() => DriverDTO)
driversById!: { [driverId: string]: DriverDTO };
driversById!: Record<string, DriverDTO>;
}