Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* PI-1714

* PI-1714 refactor

* PI-1714 fix non unique

* PI-1714 fix non unique
  • Loading branch information
anthony-britton-moj authored Dec 5, 2023
1 parent 4ea8ecd commit dcb6e15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ interface CustodyRepository : JpaRepository<Custody, Long> {
fun findCustodyId(personId: Long, bookingRef: String): List<Long>

@Lock(LockModeType.PESSIMISTIC_READ)
@Query("select c.id from Custody c")
@Query("select c.id from Custody c where c.id = :id")
fun findForUpdate(id: Long): Long
}

0 comments on commit dcb6e15

Please sign in to comment.