Skip to content

Commit

Permalink
refactor(crew): 조회 조건 수정 (#196)
Browse files Browse the repository at this point in the history
- 밥모임 페이지 -> 모두 표시
- 밥모임 페이지 (가게에 열린 밥모임 리스트) -> 대기 중만 표시
  • Loading branch information
gw0215 authored Apr 4, 2023
1 parent 04aff1b commit ccbf58b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public interface CrewRepository extends JpaRepository<Crew, Long> {
SELECT c
FROM Crew c
JOIN FETCH c.store s
WHERE s.placeId = :placeId
WHERE s.placeId = :placeId AND c.status = 'RECRUITING'
""",
countQuery = "SELECT count(c) FROM Crew c WHERE c.store.placeId = :placeId")
Page<Crew> findAllByPlaceId(@Param(value = "placeId") String placeId, Pageable pageable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Optional<CrewMember> findCrewMemberByCrewIdAndUserId(@Param(value = "crewId") Lo
@Query(value = """
SELECT cm.crew
FROM CrewMember cm
WHERE cm.userId = :userId AND cm.crew.status = 'RECRUITING' AND cm.crewMemberRole != 'BLOCKED'
WHERE cm.userId = :userId AND cm.crewMemberRole != 'BLOCKED'
""")
List<Crew> findAllByUserIdOrderByStatus(@Param("userId") Long userId);

Expand Down

0 comments on commit ccbf58b

Please sign in to comment.