Skip to content

Commit

Permalink
DTSCCI-257 Log preferred court (#2923)
Browse files Browse the repository at this point in the history
  • Loading branch information
nigeldunne authored Jul 10, 2024
1 parent 390d2b9 commit 42b3a66
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,7 @@ public Claim saveClaimantResponse(
claimBuilder.claimantResponse(response)
.claimantRespondedAt(nowInUTC())
.dateReferredForDirections(nowInUTC())
.preferredDQCourt(getPreferredCourt(claimBuilder.build()))
.preferredDQPilotCourt(getPreferredCourt(claimBuilder.build()));
.preferredDQCourt(getPreferredCourt(claimBuilder.build()));

CaseDataContent caseDataContent = caseDataContent(startEventResponse, claimBuilder.build());

Expand All @@ -618,7 +617,10 @@ public Claim saveClaimantResponse(

private String getPreferredCourt(Claim existingClaim) {
try {
return directionsQuestionnaireService.getPreferredIndieSolCourt(existingClaim);
final String preferredIndieSolCourt =
directionsQuestionnaireService.getPreferredIndieSolCourt(existingClaim);
logger.info("Preferred court: " + preferredIndieSolCourt);
return preferredIndieSolCourt;
} catch (Exception e) {
return null;
}
Expand Down

0 comments on commit 42b3a66

Please sign in to comment.