Skip to content

Commit

Permalink
CIV-9422 removing location name from SDO DJ (#3574)
Browse files Browse the repository at this point in the history
Co-authored-by: mfallonhmcts <[email protected]>
  • Loading branch information
asthamalviya and mfallonhmcts authored Nov 16, 2023
1 parent 2375129 commit d97517f
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -661,17 +661,7 @@ private CallbackResponse generateSDONotifications(CallbackParams callbackParams)
caseDataBuilder.orderSDODocumentDJ(null);
assignCategoryId.assignCategoryIdToCollection(caseData.getOrderSDODocumentDJCollection(), document -> document.getValue().getDocumentLink(), "sdo");
caseDataBuilder.businessProcess(BusinessProcess.ready(STANDARD_DIRECTION_ORDER_DJ));
String authToken = callbackParams.getParams().get(BEARER_TOKEN).toString();
List<LocationRefData> locations = (locationRefDataService
.getCourtLocationsForDefaultJudgments(authToken));
if (nonNull(locations)) {
LocationRefData location = fillPreferredLocationData(locations, getLocationListFromCaseData(
caseData.getDisposalHearingMethodInPersonDJ(), caseData.getTrialHearingMethodInPersonDJ()));
Optional.ofNullable(location)
.map(LocationRefData::getSiteName)
.ifPresent(caseDataBuilder::locationName);

}
var state = "CASE_PROGRESSION";
caseDataBuilder.hearingNotes(getHearingNotes(caseData));

Expand Down

0 comments on commit d97517f

Please sign in to comment.