Skip to content

Commit

Permalink
fix: 미션 기록 생성 raisePet 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
char-yb committed Aug 23, 2024
1 parent c176e56 commit eca9cd9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ public void saveMission(Long missionId, String content) {
findMissionHistoryByIdAndRaisePet(missionId, mission.getRaisePet());

MissionRecord missionRecord =
MissionRecord.createMissionRecord(content, member, missionHistory);
missionRecordRepository
.findByMemberAndMissionHistory(member, missionHistory)
.orElseThrow(() -> new CustomException(ErrorCode.MISSION_RECORD_NOT_FOUND));

missionRecord.updateContent(content);

Expand Down

0 comments on commit eca9cd9

Please sign in to comment.