Skip to content

Commit

Permalink
[#244] fix: 모집 중인 팀만 조회되도록 조건 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dl-00-e8 committed Sep 23, 2024
1 parent 2e24327 commit 7a3391f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,14 @@ public Page<SimpleTeamRes> findPaginationWithoutContest(String province, String
}

public Page<SimpleTeamRes> findRecruitPagination(Long memberId, Pageable pageable) {
List<TeamStatus> teamStatusList = Arrays.asList(TeamStatus.RECRUITING, TeamStatus.EXTENSION);

List<Team> teamList = queryFactory
.select(team)
.from(team)
.where(
team.member.id.eq(memberId),
team.status.in(teamStatusList),
team.deletedAt.isNull()
)
.orderBy(team.createdAt.desc())
Expand Down

0 comments on commit 7a3391f

Please sign in to comment.