diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-18 16:02:02 -0400 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-18 16:02:02 -0400 |
commit | 53cc8e1cf75468c9d270443627ee8f71db57ea59 (patch) | |
tree | 5838a5502bf9ba72b194981def6ea6acf0ef19a1 /ufund-api | |
parent | 080f7ce14770dd8b6bc893160afd357fada883b2 (diff) | |
download | JellySolutions-53cc8e1cf75468c9d270443627ee8f71db57ea59.tar.gz JellySolutions-53cc8e1cf75468c9d270443627ee8f71db57ea59.tar.bz2 JellySolutions-53cc8e1cf75468c9d270443627ee8f71db57ea59.zip |
Fixed error in cupboard controller where the maxgoal was an integer and not a double
Diffstat (limited to 'ufund-api')
-rw-r--r-- | ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java | 2 |
1 files changed, 1 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 6356fd9..253b3f7 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,7 @@ public class CupboardController { public ResponseEntity<Need> createNeed(@RequestBody Map<String, Object> params) { System.out.println(params); String name = (String) params.get("name"); - int maxGoal = (int) params.get("maxGoal"); + double maxGoal = (double) params.get("maxGoal"); Need.GoalType goalType = GoalType.valueOf((String) params.get("type")); try { |