Delete image tags and unlink from images
All checks were successful
build-and-deploy / build-deploy (push) Successful in 33s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 33s
This commit is contained in:
@@ -42,6 +42,10 @@ interface RoomImageRepo : JpaRepository<RoomImage, UUID> {
|
||||
fun existsByRoomIdAndContentHash(roomId: UUID, contentHash: String): Boolean
|
||||
fun existsByTagsId(id: UUID): Boolean
|
||||
|
||||
@org.springframework.data.jpa.repository.Modifying
|
||||
@Query(value = "delete from room_image_tag_link where tag_id = :tagId", nativeQuery = true)
|
||||
fun deleteTagLinks(@Param("tagId") tagId: UUID): Int
|
||||
|
||||
@Query("select coalesce(max(ri.roomSortOrder), 0) from RoomImage ri where ri.room.id = :roomId")
|
||||
fun findMaxRoomSortOrder(@Param("roomId") roomId: UUID): Int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user