Skip to content

Commit

Permalink
Merge pull request #119 from reading-log/develop
Browse files Browse the repository at this point in the history
리팩토링 작업 서버 반영
  • Loading branch information
enjoy89 authored May 10, 2024
2 parents 138ad76 + fd52068 commit 97e96db
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ public BookLogResponse bookLogDetails(Long memberId, Long bookId) {
public SummaryPageResponse bookLogs(Pageable pageable) {
Slice<Summary> summaries = summaryRepository.findAllBy(pageable);

// 북로그가 존재하지 않는 경우 예외 처리
if (summaries.getContent().isEmpty()) {
throw new SummaryException(ErrorCode.NOT_FOUND_BOOK_LOGS);
}

List<SummaryResponse> bookLogs = summaries.getContent().stream()
.map(summary -> SummaryResponse.fromEntity(summary,
likeSummaryService.getSummaryLikeCount(summary.getId())))
Expand Down

0 comments on commit 97e96db

Please sign in to comment.