Skip to content

Commit

Permalink
Merge pull request #189 from Modagbul/main
Browse files Browse the repository at this point in the history
fix : 반복미션 종료되는 버그 해결
  • Loading branch information
seungueonn authored Jan 4, 2024
2 parents ea331cf + 1d2abc1 commit 1878985
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public boolean isAbleToEnd(Long missionId) {
Long total = totalPeople(mission);
Long done = donePeople(mission);

return done.equals(total);
return done >= total;

}
public boolean isAbleToScoreUp(Long missionId) {
Expand Down Expand Up @@ -70,7 +70,7 @@ public Long totalPeople(Mission mission) {
public void updateMissionState(Member member, Mission mission, MissionArchive missionArchive) {

// 마지막 인증 시
if (isAbleToEnd(mission.getId())) {
if (mission.getType().equals(MissionType.ONCE) && isAbleToEnd(mission.getId())) {
mission.updateStatus(MissionStatus.SUCCESS);
}
missionStateSaveService.saveMissionState(member,mission, missionArchive.getStatus());
Expand Down

0 comments on commit 1878985

Please sign in to comment.