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