This commit is contained in:
parent
1e30d81231
commit
b609fac559
10 changed files with 237 additions and 12 deletions
|
@ -27,7 +27,6 @@ public class CategoryRepository {
|
|||
return getByName(name)
|
||||
.orElseThrow(() -> new CategroyDoesNotExist("A Category with name " + name + " does not exits. You must create it first."))
|
||||
.getId();
|
||||
|
||||
}
|
||||
|
||||
public Optional<Category> getById(CategoryId id) {
|
||||
|
|
Reference in a new issue