fix: formatting in ingredient controller
This commit is contained in:
parent
3af808ef58
commit
6b659a2ced
1 changed files with 3 additions and 2 deletions
|
|
@ -77,8 +77,9 @@ public class IngredientController {
|
|||
) {
|
||||
List<Ingredient> ingredients = limit
|
||||
.map(l -> {
|
||||
return ingredientRepository.findAllByOrderByNameAsc
|
||||
(PageRequest.of(page.orElse(0), l)).toList();
|
||||
return ingredientRepository.findAllByOrderByNameAsc(
|
||||
PageRequest.of(page.orElse(0), l)
|
||||
).toList();
|
||||
})
|
||||
.orElseGet(ingredientRepository::findAllByOrderByNameAsc);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue