Skip to content

Commit

Permalink
PI-1939 - update document repo, as all documents to be downloaded are… (
Browse files Browse the repository at this point in the history
#3632)

PI-1939 - update document repo, as all documents to be downloaded are not offender documents

Signed-off-by: Amardeep Chimber <[email protected]>
  • Loading branch information
achimber-moj authored Apr 15, 2024
1 parent 24b0a35 commit 0496820
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ interface CourtDocumentDetails {
val documentName: String
}

interface DocumentRepository : JpaRepository<PersonDocument, Long> {
interface DocumentRepository : JpaRepository<Document, Long> {
fun findByPersonId(personId: Long): List<PersonDocument>

@Query("select d.name from PersonDocument d join Person p on p.id = d.personId and p.crn = :crn and d.alfrescoId = :alfrescoId")
@Query("select d.name from Document d join Person p on p.id = d.personId and p.crn = :crn and d.alfrescoId = :alfrescoId")
fun findNameByPersonCrnAndAlfrescoId(crn: String, alfrescoId: String): String?

@Query(
Expand Down

0 comments on commit 0496820

Please sign in to comment.