Display message when there's no books

This commit is contained in:
aditya.chandel
2024-12-22 12:18:33 -07:00
parent 47ec1c3930
commit 043c681132
3 changed files with 10 additions and 1 deletions
@@ -70,6 +70,7 @@ public class BooksService {
} else {
throw new IllegalArgumentException("Invalid sortBy parameter");
}
return bookPage.getContent().stream()
.map(BookTransformer::convertToBookDTO)
.collect(Collectors.toList());