From 315f102b7f159697983accbab40d0c875f1ca063 Mon Sep 17 00:00:00 2001 From: "probation-integration-bot[bot]" <177347787+probation-integration-bot[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 16:32:03 +0000 Subject: [PATCH] Formatting changes --- .../digital/hmpps/data/EntityManagerDataLoader.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/projects/manage-pom-cases-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/EntityManagerDataLoader.kt b/projects/manage-pom-cases-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/EntityManagerDataLoader.kt index e65de4cea..6c2b4563e 100644 --- a/projects/manage-pom-cases-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/EntityManagerDataLoader.kt +++ b/projects/manage-pom-cases-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/EntityManagerDataLoader.kt @@ -9,22 +9,21 @@ import uk.gov.justice.digital.hmpps.data.generator.ProviderGenerator import uk.gov.justice.digital.hmpps.integrations.delius.provider.entity.Staff @Component -class EntityManagerDataLoader{ +class EntityManagerDataLoader { @PersistenceContext private lateinit var entityManager: EntityManager @Transactional - fun loadData():Map { + fun loadData(): Map { - val staffMap = (PersonManagerGenerator.ALL.map { it.staff } + ProviderGenerator.UNALLOCATED_STAFF).associateBy { it.code } + val staffMap = + (PersonManagerGenerator.ALL.map { it.staff } + ProviderGenerator.UNALLOCATED_STAFF).associateBy { it.code } val savedStaffMap = staffMap.map { entityManager.merge(it.value) }.associateBy { it.code } return savedStaffMap - } - } \ No newline at end of file