Skip to content

Commit

Permalink
[BOOK-28]-hotfix: reviewResponse에 book null 체크 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny2you committed Oct 12, 2024
1 parent 3d1f0dc commit aad62bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static ReviewResponse of(Review review) {
.name(review.getUser().getName())
.content(review.getContent())
.file(review.getFile() != null ? FileResponse.from(review.getFile()) : null)
.book(BookResponse.from(review.getBook()))
.book(review.getBook() != null ? BookResponse.from(review.getBook()) : null)
.createdAt(review.getCreatedAt().format(formatter))
.updatedAt(review.getUpdatedAt().format(formatter))
.build();
Expand Down

0 comments on commit aad62bf

Please sign in to comment.