Skip to content

Commit

Permalink
Merge branch 'PI-2101-licence-conditions' of github.com:ministryofjus…
Browse files Browse the repository at this point in the history
…tice/hmpps-probation-integration-services into PI-2101-licence-conditions
  • Loading branch information
pmcphee77 committed Aug 7, 2024
2 parents b0ed682 + abba559 commit 7f5c6c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Handler(
is CustodyDateChanged -> cduService.updateCustodyKeyDates(message.bookingId)
is ProbationOffenderEvent -> when (notification.eventType) {
"SENTENCE_CHANGED",
-> personRepository.findNomsIdByCrn(message.crn)?.let { cduService.updateCustodyKeyDates(it) }
-> personRepository.findNomsIdByCrn(message.crn)?.let { cduService.updateCustodyKeyDates(it) }

else -> throw IllegalArgumentException("Unexpected offender event type: ${notification.eventType}")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class PomCaseMessageHandler(

is ProbationOffenderEvent -> when (notification.eventType) {
"SENTENCE_CHANGED",
-> personRepository.findNomsSingleCustodial(message.crn)?.let {
-> personRepository.findNomsSingleCustodial(message.crn)?.let {
try {
handoverDatesChanged.process(
HandoverMessage(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Handler(
is OffenderEvent -> when (notification.eventType) {
"OFFENDER_DETAILS_CHANGED", // changes to name, date of birth, identifiers in Delius
"SENTENCE_CHANGED", // changes to sentence status and dates in Delius
-> prisonMatchingService
-> prisonMatchingService
.matchAndUpdateIdentifiers(message.crn)
.also { telemetryService.logResult(it) }

Expand Down

0 comments on commit 7f5c6c0

Please sign in to comment.