harden media

This commit is contained in:
2025-12-31 15:39:28 +01:00
parent 92226800df
commit 8260bf7baf
413 changed files with 8361 additions and 1544 deletions

View File

@@ -7,6 +7,7 @@ export const RACE_REPOSITORY_TOKEN = 'IRaceRepository';
export const SPONSORSHIP_PRICING_REPOSITORY_TOKEN = 'ISponsorshipPricingRepository';
export const SPONSORSHIP_REQUEST_REPOSITORY_TOKEN = 'ISponsorshipRequestRepository';
export const LOGGER_TOKEN = 'Logger';
export const MEDIA_RESOLVER_TOKEN = 'MediaResolverPort';
// Presenter tokens
export const GET_ENTITY_SPONSORSHIP_PRICING_PRESENTER_TOKEN = 'GetEntitySponsorshipPricingPresenter';

View File

@@ -10,8 +10,8 @@ export class SponsorDTO {
@ApiProperty({ required: false })
contactEmail?: string;
@ApiProperty({ required: false })
logoUrl?: string;
@ApiProperty({ nullable: true })
logoUrl!: string | null;
@ApiProperty({ required: false })
websiteUrl?: string;

View File

@@ -26,10 +26,10 @@ export class SponsorProfileDTO {
@IsString()
description: string = '';
@ApiProperty({ required: false })
@ApiProperty({ nullable: true })
@IsOptional()
@IsString()
logoUrl?: string;
logoUrl!: string | null;
@ApiProperty()
@IsString()