aboutsummaryrefslogtreecommitdiff
path: root/ufund-api/src/main/java/com/ufund/api/ufundapi/controller
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/controller')
-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 4bad4b9..bffc9ec 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
@@ -52,7 +52,7 @@ public class CupboardController {
System.out.println(params);
String name = (String) params.get("name");
int maxGoal = (int) params.get("maxGoal");
- Need.GoalType goalType = GoalType.valueOf((String) params.get("goalType"));
+ Need.GoalType goalType = GoalType.valueOf((String) params.get("type"));
try {
Need need = cupboardService.createNeed(name, maxGoal, goalType);