Skip to content

Commit

Permalink
Merge pull request #167 from Team-MindWay/166-book-returned-500-resolved
Browse files Browse the repository at this point in the history
book list 반활될때 500 해결
  • Loading branch information
ta2ye0n authored Jun 4, 2024
2 parents 7dab649 + 5570c6c commit 1e7c885
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ public List<BookListResponse> execute() {
User user = userUtil.getCurrentUser();
List<Book> books = bookRepository.findAllByUser(user);

if (user != books.get(0).getUser()) {
throw new NotSameAuthorException();
}

return books.stream()
.map(bookConverter::toListDto)
.collect(Collectors.toList());
Expand Down

0 comments on commit 1e7c885

Please sign in to comment.