Fix: 이미지 가져오기 우선순위 설정

This commit is contained in:
김용수 2024-09-30 10:39:39 +09:00
parent 6a1409dbe5
commit eec903e233

View File

@ -21,7 +21,7 @@ public interface ImageRepository extends JpaRepository<Image, Long> {
"join fetch i.folder f " +
"join fetch f.project p " +
"where p.id = :projectId " +
"AND i.status = 'PENDING' OR i.status = 'IN_PROGRESS' ")
"AND (i.status = 'PENDING' OR i.status = 'IN_PROGRESS') ")
List<Image> findImagesByProjectIdAndPendingOrInProgress(@Param("projectId") Integer projectId);
@Query("select i from Image i " +