Skip to content

Commit

Permalink
remove unused code (#2458)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-britton-moj authored Oct 30, 2023
1 parent fd47bc4 commit 0c6371f
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,4 @@ interface PersonManagerRepository : JpaRepository<PersonManager, Long> {
interface PrisonManagerRepository : JpaRepository<PrisonManager, Long> {
@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<String>
}

0 comments on commit 0c6371f

Please sign in to comment.