Browse Source

BasePathAwareController: expect only a single category

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.4-alpha
Pekka Helenius 4 years ago
parent
commit
62715cce8a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/web/BookBasePathAwareController.java

+ 1
- 1
bookstore/src/main/java/com/fjordtek/bookstore/web/BookBasePathAwareController.java View File

@ -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)
); );
} }
} }


Loading…
Cancel
Save