add dto, refactor names, update controllers #14

Merged
mirrerror merged 4 commits from dimas into master 2023-10-05 10:42:37 +00:00
Showing only changes of commit 46dad36166 - Show all commits

View File

@@ -42,7 +42,6 @@ public class IncomeController {
public ResponseEntity<Income> updateIncome(@RequestBody Income income,
BindingResult bindingResult) {
if (!bindingResult.hasErrors()) {
System.out.println("amount: " + income.getAmount());
incomeService.createOrUpdateIncome(income);
return ResponseEntity.ok(income);
} else {