Skip to content

Commit 881d601

Browse files
author
Mikalai Alimenkou
committed
Fixed bug with books author search
1 parent 8c09454 commit 881d601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/xpinjection/library/service/impl/BookServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public List<BookDto> findBooksByAuthor(String author) {
5454
"Try to find books by author: {}", value("author", author));
5555
Assert.hasText(author, "Author is empty!");
5656
var normalizedAuthor = normalizeAuthorName(author);
57-
var books = cache.get(normalizedAuthor, () -> bookDao.findByAuthor(author));
57+
var books = cache.get(normalizedAuthor, () -> bookDao.findByAuthor(normalizedAuthor));
5858
return toDto(books);
5959
}
6060

0 commit comments

Comments
 (0)