aboutsummaryrefslogtreecommitdiff
path: root/ufund-api
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-03-18 16:02:02 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-03-18 16:02:02 -0400
commit53cc8e1cf75468c9d270443627ee8f71db57ea59 (patch)
tree5838a5502bf9ba72b194981def6ea6acf0ef19a1 /ufund-api
parent080f7ce14770dd8b6bc893160afd357fada883b2 (diff)
downloadJellySolutions-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.java2
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 {