Implement edit shelf

This commit is contained in:
aditya.chandel
2025-01-24 22:22:36 -07:00
parent ba06e70177
commit 5d087928c6
6 changed files with 141 additions and 0 deletions
@@ -38,6 +38,7 @@ public class ShelfService {
ShelfEntity shelfEntity = shelfRepository.findById(id)
.orElseThrow(() -> ApiError.SHELF_NOT_FOUND.createException(id));
shelfEntity.setName(request.getName());
shelfEntity.setIcon(request.getIcon());
return shelfMapper.toShelf(shelfRepository.save(shelfEntity));
}