Skip to content

Commit

Permalink
fix : 완료된 미션 중 성공/실패 기준 보완 (개인별) :: coalesce(FAIL)
Browse files Browse the repository at this point in the history
  • Loading branch information
seungueonn committed Nov 29, 2023
1 parent a58bae4 commit 2c5b71b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public Optional<List<FinishMissionBoardRes>> findFinishMissionsByStatus(Long mem
mission.id,
mission.dueTo.stringValue(),
mission.title,
missionArchive.status.stringValue().coalesce("INCOMPLETE").as("status"),
missionArchive.status.stringValue().coalesce("FAIL").as("status"),
mission.type.stringValue(),
mission.way.stringValue()
))
Expand All @@ -215,7 +215,7 @@ public Optional<List<FinishMissionBoardRes>> findFinishMissionsByStatus(Long mem
.on(missionArchive.member.memberId.eq(memberId))
.where(
mission.team.teamId.eq(teamId),
mission.status.eq(MissionStatus.SUCCESS).or(mission.status.eq(MissionStatus.FAIL))
mission.status.eq(MissionStatus.SUCCESS).or(mission.status.eq(MissionStatus.END))
)
.fetch()
);
Expand Down

0 comments on commit 2c5b71b

Please sign in to comment.