From 54876363de44791ba65b6c43b795f8d0c3548ecc Mon Sep 17 00:00:00 2001 From: sowgro Date: Mon, 17 Mar 2025 21:45:31 -0400 Subject: Fix tests --- .../main/java/com/ufund/api/ufundapi/controller/CupboardController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/controller') 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); -- cgit v1.2.3