refactor
This commit is contained in:
@@ -15,9 +15,10 @@ export class DashboardDriverSummaryDTO {
|
||||
@IsString()
|
||||
country!: string;
|
||||
|
||||
@ApiProperty()
|
||||
@ApiProperty({ nullable: true })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
avatarUrl!: string;
|
||||
avatarUrl?: string | null;
|
||||
|
||||
@ApiProperty({ nullable: true })
|
||||
@IsOptional()
|
||||
@@ -52,13 +53,15 @@ export class DashboardRaceSummaryDTO {
|
||||
@IsString()
|
||||
id!: string;
|
||||
|
||||
@ApiProperty()
|
||||
@ApiProperty({ nullable: true })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
leagueId!: string;
|
||||
leagueId?: string | null;
|
||||
|
||||
@ApiProperty()
|
||||
@ApiProperty({ nullable: true })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
leagueName!: string;
|
||||
leagueName?: string | null;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
@@ -90,13 +93,15 @@ export class DashboardRecentResultDTO {
|
||||
@IsString()
|
||||
raceName!: string;
|
||||
|
||||
@ApiProperty()
|
||||
@ApiProperty({ nullable: true })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
leagueId!: string;
|
||||
leagueId?: string | null;
|
||||
|
||||
@ApiProperty()
|
||||
@ApiProperty({ nullable: true })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
leagueName!: string;
|
||||
leagueName?: string | null;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
@@ -120,17 +125,19 @@ export class DashboardLeagueStandingSummaryDTO {
|
||||
@IsString()
|
||||
leagueName!: string;
|
||||
|
||||
@ApiProperty()
|
||||
@ApiProperty({ nullable: true })
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
position!: number;
|
||||
position?: number | null;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
totalDrivers!: number;
|
||||
|
||||
@ApiProperty()
|
||||
@ApiProperty({ nullable: true })
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
points!: number;
|
||||
points?: number | null;
|
||||
}
|
||||
|
||||
export class DashboardFeedItemSummaryDTO {
|
||||
@@ -191,9 +198,10 @@ export class DashboardFriendSummaryDTO {
|
||||
@IsString()
|
||||
country!: string;
|
||||
|
||||
@ApiProperty()
|
||||
@ApiProperty({ nullable: true })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
avatarUrl!: string;
|
||||
avatarUrl?: string | null;
|
||||
}
|
||||
|
||||
export class DashboardOverviewDTO {
|
||||
|
||||
Reference in New Issue
Block a user