Skip to content

Commit

Permalink
fix : 한번미션 점수 반영 안되는 버그
Browse files Browse the repository at this point in the history
  • Loading branch information
seungueonn committed Jan 9, 2024
1 parent f96edfd commit 86162f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ public void singleMissionEndRoutine() {

List<Mission> missionByDueTo = missionQueryService.findMissionByDueTo();

missionByDueTo.stream().forEach(mission -> {
for (Mission mission : missionByDueTo) {
mission.updateStatus(MissionStatus.END);
teamScoreLogicUseCase.updateTeamScore(mission.getId());
});
}

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public boolean isAbleToEnd(Mission mission) {
Long total = totalPeople(mission);
Long done = donePeople(mission);

return done >= total;
return done > total;

}

Expand Down

0 comments on commit 86162f9

Please sign in to comment.