From 4aaa51af54e29a791d259e7698ff88bc57028f7f Mon Sep 17 00:00:00 2001 From: Marcus Aspin Date: Thu, 28 Mar 2024 12:01:20 +0000 Subject: [PATCH] PI-1962 Fix indirect indecent band (#3552) --- .../kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/risk-assessment-scores-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt b/projects/risk-assessment-scores-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt index 4f39732a6a..08bd88527e 100644 --- a/projects/risk-assessment-scores-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt +++ b/projects/risk-assessment-scores-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt @@ -102,7 +102,7 @@ fun HmppsDomainEvent.ospIndecent() = additionalInformation["OSPIndecentScore"]?. ) } -fun HmppsDomainEvent.ospIndirectIndecent() = additionalInformation["OSPIndecentIndirectBand"]?.let { +fun HmppsDomainEvent.ospIndirectIndecent() = additionalInformation["OSPIndirectIndecentBand"]?.let { RiskAssessment( additionalInformation["OSPIndirectIndecentScore"] as Double, additionalInformation["OSPIndirectIndecentBand"] as String,