Apply updated category expense value

This commit is contained in:
William Brawner 2020-02-18 19:51:48 -07:00
parent 3ed5d700bd
commit 5efc9b2b3b

View file

@ -112,6 +112,7 @@ open class CategoryController(
request.title?.let { category = category.copy(title = it) }
request.description?.let { category = category.copy(description = it) }
request.amount?.let { category = category.copy(amount = it) }
request.expense?.let { category = category.copy(expense = it) }
return ResponseEntity.ok(CategoryResponse(categoryRepository.save(category)))
}