From 5efc9b2b3b56b36c4cc2beac38a88042ebc84279 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Tue, 18 Feb 2020 19:51:48 -0700 Subject: [PATCH] Apply updated category expense value --- .../com/wbrawner/budgetserver/category/CategoryController.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/com/wbrawner/budgetserver/category/CategoryController.kt b/src/main/kotlin/com/wbrawner/budgetserver/category/CategoryController.kt index fa5b43f..e7be067 100644 --- a/src/main/kotlin/com/wbrawner/budgetserver/category/CategoryController.kt +++ b/src/main/kotlin/com/wbrawner/budgetserver/category/CategoryController.kt @@ -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))) }