aboutsummaryrefslogtreecommitdiff
path: root/ufund-api
diff options
context:
space:
mode:
authorAkash Keshav <112591754+domesticchores@users.noreply.github.com>2025-03-18 15:49:08 -0400
committerAkash Keshav <112591754+domesticchores@users.noreply.github.com>2025-03-18 15:49:08 -0400
commitcd9dfcec9e7ae9fe6f08b61927b16cf76b8bcef7 (patch)
tree8459fea69c0a20150479c65443991927e6aef6cf /ufund-api
parent080f7ce14770dd8b6bc893160afd357fada883b2 (diff)
downloadJellySolutions-cd9dfcec9e7ae9fe6f08b61927b16cf76b8bcef7.tar.gz
JellySolutions-cd9dfcec9e7ae9fe6f08b61927b16cf76b8bcef7.tar.bz2
JellySolutions-cd9dfcec9e7ae9fe6f08b61927b16cf76b8bcef7.zip
debug of checkout. -ak
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 6356fd9..3c310df 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);