Skip to content

Commit

Permalink
PI-2039 Switch label + name
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl committed Mar 28, 2024
1 parent abef79e commit 4eb8cc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"description": "More information about the application has been requested from the POM (Prison Offender Manager).",
"statusDetails": [
{
"label": "personalInformation",
"name": "Personal Information"
"name": "personalInformation",
"label": "Personal Information"
},
{
"label": "healthNeeds",
"name": "Health Needs"
"name": "healthNeeds",
"label": "Health Needs"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package uk.gov.justice.digital.hmpps.service

import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import jakarta.transaction.Transactional
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.client.approvedpremises.EventDetailsClient
Expand Down Expand Up @@ -42,7 +41,7 @@ class Cas2Service(
|Application status was updated to: ${details.eventDetails.newStatus.label}
|
|Details: ${details.eventDetails.newStatus.description}
|* ${details.eventDetails.newStatus.statusDetails.joinToString(separator = System.lineSeparator() + "|* ") { it.name }}
|* ${details.eventDetails.newStatus.statusDetails.joinToString(separator = System.lineSeparator() + "|* ") { it.label }}
|
|Details of the application can be found here: ${details.eventDetails.applicationUrl}
""".trimMargin(),
Expand Down

0 comments on commit 4eb8cc9

Please sign in to comment.