Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lovretomic committed Dec 9, 2024
1 parent 215e122 commit a321686
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/types/src/dto/company.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,14 @@ export class CompanyModifyDescriptionDto {
website: string;

@IsOptional()
@ValidateIf((e) => e.instagram !== '')
@IsString()
@IsUrl()
instagram: string;

@IsOptional()
@ValidateIf((e) => e.linkedin !== '')
@IsString()
@IsUrl()
linkedin: string;
}

0 comments on commit a321686

Please sign in to comment.