Skip to content

Commit

Permalink
MODNCIP-68 Send field only if not null
Browse files Browse the repository at this point in the history
  • Loading branch information
JanisSaldabols committed Sep 11, 2024
1 parent 2ca42c3 commit 9716aab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/folio/ncip/FolioRemoteServiceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,9 @@ public JsonObject requestItem(RequestItemInitiationData initData) throws Excepti
servicePointId = ncipProperties.getProperty(agencyId + ".checkout.service.point.id");
}
request.put("pickupServicePointId", servicePointId);
request.put("itemLocationCode", locationCode);
if (locationCode != null) {
request.put("itemLocationCode", locationCode);
}

String requestUrl = baseUrl + Constants.REQUEST_URL;
String requestResponse = callApiPost(requestUrl, request);
Expand Down

0 comments on commit 9716aab

Please sign in to comment.