Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PI-2101: Added licence conditions endpoint #4144

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) }
pmcphee77 marked this conversation as resolved.
Show resolved Hide resolved

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
Loading