diff options
author | benal01 <bja4245@rit.edu> | 2025-03-27 08:18:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-27 08:18:29 -0400 |
commit | 2dc001c80af113d8d01ba545a0dbfda960e0f7fe (patch) | |
tree | 222807b745ff1cdff83153821deb088afcd0f05b /ufund-api/src | |
parent | 07d191cb1fc8890f66e9af7d19e8276089d18d8b (diff) | |
parent | d5ae670dbce9e5cabbd594759df490176fd8cecd (diff) | |
download | JellySolutions-2dc001c80af113d8d01ba545a0dbfda960e0f7fe.tar.gz JellySolutions-2dc001c80af113d8d01ba545a0dbfda960e0f7fe.tar.bz2 JellySolutions-2dc001c80af113d8d01ba545a0dbfda960e0f7fe.zip |
Merge branch 'list-and-cupboard-component-refactor' into need-sorting
Diffstat (limited to 'ufund-api/src')
-rw-r--r-- | ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java index 36ae341..55cf88d 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java @@ -50,7 +50,8 @@ public class CupboardController { public ResponseEntity<Need> createNeed(@RequestBody Map<String, Object> params) { System.out.println(params); String name = (String) params.get("name"); - double maxGoal = (double) params.get("maxGoal"); + System.out.println("attemtping cast maxgoual"); + double maxGoal = ((Number) params.get("maxGoal")).doubleValue(); Need.GoalType goalType = GoalType.valueOf((String) params.get("type")); try { |