Skip to content

Commit

Permalink
Merge pull request #202 from depromeet/develop
Browse files Browse the repository at this point in the history
v0.0.9
  • Loading branch information
char-yb authored Aug 23, 2024
2 parents df001b2 + eca9cd9 commit 38d227a
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 38d227a

Please sign in to comment.