Skip to content

Commit

Permalink
fix: place 컬럼 null 허용 & dto에서 required: false로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kmi0817 committed Dec 5, 2023
1 parent 7218923 commit cd3d7f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions BE/src/timelines/dto/create-timeline.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ export class CreateTimelineDto {
date: string;

@ApiProperty({
required: false,
example: 'GS25 서울역점',
description: '장소 이름',
maxLength: 50,
})
@IsOptional()
@IsString()
place: string;

Expand Down
2 changes: 1 addition & 1 deletion BE/src/timelines/entities/timeline.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Timeline {
@Column({ type: 'date' })
date: string;

@Column({ length: 50 })
@Column({ length: 50, nullable: true })
place: string;

@Column({ type: 'char', length: '5' })
Expand Down

0 comments on commit cd3d7f0

Please sign in to comment.