aboutsummaryrefslogtreecommitdiff
path: root/ufund-api
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-03-18 16:02:28 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-03-18 16:02:28 -0400
commit2348497b5dd6bca85473e409e092aa897d5a6a7f (patch)
tree133a51b5964f28fc2961a56dc34543618bddce25 /ufund-api
parent53cc8e1cf75468c9d270443627ee8f71db57ea59 (diff)
parent9d90b2a29b1f47b6271fd9ea87989a4195cf5ee6 (diff)
downloadJellySolutions-2348497b5dd6bca85473e409e092aa897d5a6a7f.tar.gz
JellySolutions-2348497b5dd6bca85473e409e092aa897d5a6a7f.tar.bz2
JellySolutions-2348497b5dd6bca85473e409e092aa897d5a6a7f.zip
Merge branch 'funding_basket' of https://github.com/RIT-SWEN-261-02/team-project-2245-swen-261-02-2b into funding_basket
Diffstat (limited to 'ufund-api')
-rw-r--r--ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java1
-rw-r--r--ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/CupboardFileDAO.java1
2 files changed, 2 insertions, 0 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 253b3f7..b9ab4b4 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
@@ -144,6 +144,7 @@ public class CupboardController {
*/
@PutMapping("/{id}")
public ResponseEntity<Need> updateNeed(@RequestBody Need need, @PathVariable int id) {
+ LOG.log(Level.INFO, "RAHHHHH " + need);
try {
Need updatedNeed = cupboardService.updateNeed(need, id);
if (updatedNeed != null) {
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/CupboardFileDAO.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/CupboardFileDAO.java
index 521acae..a51d307 100644
--- a/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/CupboardFileDAO.java
+++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/CupboardFileDAO.java
@@ -100,6 +100,7 @@ public class CupboardFileDAO implements CupboardDAO {
@Override
public Need updateNeed(Need need) throws IOException {
+ System.out.println("UPDATING NEED FOR " + need);
synchronized (needs) {
if (needs.containsKey(need.getId())) {
needs.put(need.getId(), need);