Split room image ordering for room and room type
All checks were successful
build-and-deploy / build-deploy (push) Successful in 32s

This commit is contained in:
androidlover5842
2026-01-27 16:12:55 +05:30
parent 083909938a
commit 518a5bb359
4 changed files with 12 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ interface RoomImageRepo : JpaRepository<RoomImage, UUID> {
select ri
from RoomImage ri
where ri.room.id = :roomId
order by (ri.sortOrder is null), ri.sortOrder asc, ri.createdAt desc
order by (ri.roomSortOrder is null), ri.roomSortOrder asc, ri.createdAt desc
"""
)
fun findByRoomIdOrdered(@Param("roomId") roomId: UUID): List<RoomImage>