Skip to content

Commit

Permalink
refactor(Book): 도서 등록시 리뷰 링크 정보가 없을 경우 빈 배열을 저장하도록 변경 (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
limehee authored May 3, 2024
1 parent 94640a9 commit 6826381
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static Book toEntity(BookRequestDto requestDto) {
.author(requestDto.getAuthor())
.publisher(requestDto.getPublisher())
.imageUrl(requestDto.getImageUrl())
.reviewLinks(requestDto.reviewLinks)
.reviewLinks(requestDto.reviewLinks == null ? List.of() : requestDto.reviewLinks)
.build();
}

Expand Down

0 comments on commit 6826381

Please sign in to comment.