diff --git a/API-Server/src/main/java/swm/hkcc/LGTM/app/modules/mission/repository/MissionCustomRepositoryImpl.java b/API-Server/src/main/java/swm/hkcc/LGTM/app/modules/mission/repository/MissionCustomRepositoryImpl.java index 3c82eb44..e0f4d527 100644 --- a/API-Server/src/main/java/swm/hkcc/LGTM/app/modules/mission/repository/MissionCustomRepositoryImpl.java +++ b/API-Server/src/main/java/swm/hkcc/LGTM/app/modules/mission/repository/MissionCustomRepositoryImpl.java @@ -61,7 +61,7 @@ public List getMissionsRandomOrder() { @Override @Cacheable(value = "total_missions") public List getTotalMissions() { - return getMissions(isMissionRecruiting()); + return getMissions(isMissionNotFinished()); } private List getMissions(BooleanExpression isParticipating, BooleanExpression isNotCompleted) { @@ -84,13 +84,12 @@ private List getMissions(Long memberId, BooleanExpression isMissionNotF .fetch(); } - private List getMissions(BooleanExpression isMissionRecruiting) { + private List getMissions(BooleanExpression isMissionNotFinished) { return jpaQueryFactory .select(mission) .from(mission) - .where(isMissionRecruiting) + .where(isMissionNotFinished) .orderBy(mission.createdAt.desc()) - .limit(3) .fetch(); }