diff --git a/src/main/java/com/moing/backend/domain/missionArchive/domain/repository/MissionArchiveCustomRepositoryImpl.java b/src/main/java/com/moing/backend/domain/missionArchive/domain/repository/MissionArchiveCustomRepositoryImpl.java index 9aba3d60..82837681 100644 --- a/src/main/java/com/moing/backend/domain/missionArchive/domain/repository/MissionArchiveCustomRepositoryImpl.java +++ b/src/main/java/com/moing/backend/domain/missionArchive/domain/repository/MissionArchiveCustomRepositoryImpl.java @@ -5,6 +5,7 @@ import com.moing.backend.domain.mission.application.dto.res.SingleMissionBoardRes; import com.moing.backend.domain.mission.domain.entity.constant.MissionStatus; import com.moing.backend.domain.mission.domain.entity.constant.MissionType; +import com.moing.backend.domain.mission.domain.entity.constant.MissionWay; import com.moing.backend.domain.missionArchive.application.dto.res.MissionArchivePhotoRes; import com.moing.backend.domain.missionArchive.domain.entity.MissionArchive; import com.moing.backend.domain.missionArchive.domain.entity.MissionArchiveStatus; @@ -226,7 +227,8 @@ public Optional> findTop5ArchivesByTeam(List List queryResults = queryFactory .select(missionArchive.mission.team.teamId, missionArchive.archive) .from(missionArchive) - .where(missionArchive.mission.team.teamId.in(teamIds)) + .where(missionArchive.member.memberId.in(teamIds), + missionArchive.mission.way.eq(MissionWay.PHOTO)) .orderBy(missionArchive.createdDate.desc()) .limit(14) .fetch();