Skip to content

Commit

Permalink
merge #253: place 컬럼 null 허용 & dto에서 required: false로 변경
Browse files Browse the repository at this point in the history
[fix] place 컬럼 null 허용 & dto에서 required: false로 변경
  • Loading branch information
yaongmeow authored Dec 5, 2023
2 parents 7218923 + cd3d7f0 commit 0e13bb5
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 0e13bb5

Please sign in to comment.