Skip to content

Commit

Permalink
fix(be): optional dob
Browse files Browse the repository at this point in the history
  • Loading branch information
harisato committed Oct 10, 2023
1 parent 86c6758 commit 538e754
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/creator/dto/update-creator-request.dto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiProperty } from '@nestjs/swagger';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { Transform } from 'class-transformer';
import { IsNumber } from 'class-validator';

Expand All @@ -8,7 +8,7 @@ export class UpdateCreatorRequestDto {

@ApiProperty()
@Transform(({ value }) =>
value.split('\\n').join('\n').split('\\t').join('\t'),
value.split('\\n').join('\n').split('\\t').join('\t')
)
bio: string;

Expand All @@ -21,7 +21,7 @@ export class UpdateCreatorRequestDto {
@ApiProperty()
gender: string;

@ApiProperty()
@ApiPropertyOptional()
dob: string;

@ApiProperty({ type: 'string', format: 'binary' })
Expand Down

0 comments on commit 538e754

Please sign in to comment.