|
@ -88,7 +88,7 @@ public class BookBasePathAwareController { |
|
|
|
|
|
|
|
|
if (categoryName != null) { |
|
|
if (categoryName != null) { |
|
|
book.setCategory( |
|
|
book.setCategory( |
|
|
categoryRepository.findByNameIgnoreCaseContaining(categoryName).get(0) |
|
|
|
|
|
|
|
|
categoryRepository.findByNameIgnoreCaseContaining(categoryName) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|