We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c09454 commit 881d601Copy full SHA for 881d601
src/main/java/com/xpinjection/library/service/impl/BookServiceImpl.java
@@ -54,7 +54,7 @@ public List<BookDto> findBooksByAuthor(String author) {
54
"Try to find books by author: {}", value("author", author));
55
Assert.hasText(author, "Author is empty!");
56
var normalizedAuthor = normalizeAuthorName(author);
57
- var books = cache.get(normalizedAuthor, () -> bookDao.findByAuthor(author));
+ var books = cache.get(normalizedAuthor, () -> bookDao.findByAuthor(normalizedAuthor));
58
return toDto(books);
59
}
60
0 commit comments