Apply updated category expense value
This commit is contained in:
parent
3ed5d700bd
commit
5efc9b2b3b
1 changed files with 1 additions and 0 deletions
|
@ -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)))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue