Skip to content

Commit

Permalink
feat: 공식 챌린지 리스트 조회 - 종료된 챌린지 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
daeunkwak committed Aug 28, 2023
1 parent 4f62b1c commit 870382f
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ public List<ChallengeResponseVo> getOfficialChallengeByLatest() {
List<Challenge> challenges = jpaQueryFactory
.selectFrom(challenge)
.where(challenge.challengeStatus.eq(ChallengeStatus.RECRUITING).or(challenge.challengeStatus.eq(ChallengeStatus.POSSIBLE))
.or(challenge.challengeStatus.eq(ChallengeStatus.IMPOSSIBLE))
.and(challenge.isOfficial.eq(true)))
.groupBy(challenge)
.orderBy(challenge.createdDate.desc())
Expand All @@ -133,7 +132,6 @@ public List<ChallengeResponseVo> getOfficialChallengeByParticipate() {
List<Challenge> challenges = jpaQueryFactory
.selectFrom(challenge)
.where(challenge.challengeStatus.eq(ChallengeStatus.RECRUITING).or(challenge.challengeStatus.eq(ChallengeStatus.POSSIBLE))
.or(challenge.challengeStatus.eq(ChallengeStatus.IMPOSSIBLE))
.and(challenge.isOfficial.eq(true)))
.fetch();

Expand All @@ -147,7 +145,6 @@ public List<ChallengeResponseVo> getOfficialChallengeByLike() {
List<Challenge> challenges = jpaQueryFactory
.selectFrom(challenge)
.where(challenge.challengeStatus.eq(ChallengeStatus.RECRUITING).or(challenge.challengeStatus.eq(ChallengeStatus.POSSIBLE))
.or(challenge.challengeStatus.eq(ChallengeStatus.IMPOSSIBLE))
.and(challenge.isOfficial.eq(true)))
.groupBy(challenge)
.orderBy(challenge.challengeLikes.size().desc())
Expand Down

0 comments on commit 870382f

Please sign in to comment.