diff --git a/projects/refer-and-monitor-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/person/manager/entity/PersonManager.kt b/projects/refer-and-monitor-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/person/manager/entity/PersonManager.kt index 278c7757d3..3f3538409c 100644 --- a/projects/refer-and-monitor-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/person/manager/entity/PersonManager.kt +++ b/projects/refer-and-monitor-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/person/manager/entity/PersonManager.kt @@ -123,15 +123,4 @@ interface PersonManagerRepository : JpaRepository { interface PrisonManagerRepository : JpaRepository { @EntityGraph(attributePaths = ["responsibleOfficer", "staff", "team.district.borough"]) fun findByPersonId(personId: Long): PrisonManager? - - @Query( - """ - select p.crn - from PrisonManager pm - join Person p on p.id = pm.personId - join pm.staff.user u - where u.username = :username - """ - ) - fun findCasesManagedBy(username: String): List }