aboutsummaryrefslogtreecommitdiff
path: root/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-03-30 20:36:19 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-03-30 20:36:19 -0400
commit2c2957da48b62d16ce24addcc46d0d0ed66f7a9d (patch)
tree209e3fa65cd61dfd6785178ae438b919d69f0de7 /ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java
parent6bfbf7fa3b5b14b04f99f2dd6c33d336f6f081f6 (diff)
parentb29f29eca643648381bfb62a4b90ad29e17f48a7 (diff)
downloadJellySolutions-2c2957da48b62d16ce24addcc46d0d0ed66f7a9d.tar.gz
JellySolutions-2c2957da48b62d16ce24addcc46d0d0ed66f7a9d.tar.bz2
JellySolutions-2c2957da48b62d16ce24addcc46d0d0ed66f7a9d.zip
Merge branch 'list-and-cupboard-component-refactor' into css
# Conflicts: # ufund-api/data/cupboard.json # ufund-ui/src/app/components/cupboard/cupboard.component.css # ufund-ui/src/app/components/need-list/need-list.component.css # ufund-ui/src/app/components/need-page/need-page.component.html
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java')
-rw-r--r--ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java
index aaa8cb8..4dcfcad 100644
--- a/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java
+++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java
@@ -31,7 +31,7 @@ public class CupboardService {
* @throws IOException Thrown if there was any issue saving the data
* @throws DuplicateKeyException If there already exists a need with the same name
*/
- public Need createNeed(String name, double maxGoal, Need.GoalType goalType) throws IOException, DuplicateKeyException {
+ public Need createNeed(String name, String location, double maxGoal, Need.GoalType goalType, boolean urgent) throws IOException, DuplicateKeyException {
if (maxGoal <= 0) {
throw new IllegalArgumentException("Max Goal must be greater than zero");
@@ -43,7 +43,7 @@ public class CupboardService {
}
}
- Need need = new Need(name, goalType, maxGoal);
+ Need need = new Need(name, location, maxGoal, goalType, urgent);
return cupboardDAO.addNeed(need);
}