diff --git a/src/main/java/org/folio/controller/EcsTlrController.java b/src/main/java/org/folio/controller/EcsTlrController.java index f1fc043d..552876f1 100644 --- a/src/main/java/org/folio/controller/EcsTlrController.java +++ b/src/main/java/org/folio/controller/EcsTlrController.java @@ -43,7 +43,8 @@ public ResponseEntity postEcsTlr(EcsTlr ecsTlr) { @Override public ResponseEntity putEcsTlrById(UUID requestId, EcsTlr ecsTlr) { log.debug("putEcsTlrById:: parameters requestId: {}, ecsTlr: {}", () -> requestId, () -> ecsTlr); - HttpStatus httpStatus = ecsTlrService.update(requestId, ecsTlr) ? NO_CONTENT : NOT_FOUND; + boolean requestUpdated = ecsTlrService.update(requestId, ecsTlr); + HttpStatus httpStatus = requestUpdated ? NO_CONTENT : NOT_FOUND; return ResponseEntity.status(httpStatus).build(); } @@ -51,7 +52,8 @@ public ResponseEntity putEcsTlrById(UUID requestId, EcsTlr ecsTlr) { @Override public ResponseEntity deleteEcsTlrById(UUID requestId) { log.debug("deleteEcsTlrById:: parameters requestId: {}", requestId); - HttpStatus httpStatus = ecsTlrService.delete(requestId) ? NO_CONTENT : NOT_FOUND; + boolean requestDeleted = ecsTlrService.delete(requestId); + HttpStatus httpStatus = requestDeleted ? NO_CONTENT : NOT_FOUND; return ResponseEntity.status(httpStatus).build(); } diff --git a/src/main/resources/swagger.api/examples/EcsTlr.sample b/src/main/resources/swagger.api/examples/EcsTlr.sample index 1d26623c..98709261 100644 --- a/src/main/resources/swagger.api/examples/EcsTlr.sample +++ b/src/main/resources/swagger.api/examples/EcsTlr.sample @@ -4,8 +4,8 @@ "requesterId": "4565999e-1994-4aab-9282-185731b4ce66", "requestType": "Hold", "requestLevel": "Title", - "requestExpirationDate": "2024-01-01T23:11:00-01:00", - "requestDate": "2024-01-01T00:12:00-01:00" + "requestExpirationDate": "2024-01-01T23:11:00-00:00", + "requestDate": "2024-01-01T00:12:00-00:00" "patronComments": "test comment", "fulfillmentPreference": "Hold Shelf", "pickupServicePointId": "71ff4b72-70a0-40f6-9f73-6db29ced80a3"