Skip to content

Commit

Permalink
fix: 정적 팩토리 이름 변경에 따라 사용 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn113 committed Jul 22, 2024
1 parent 02111c0 commit 44e643f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/main/java/develup/mission/MissionService.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public MissionResponse getMissionById(Long missionId, Member member, boolean gue
}

return submissionRepository.findFirstByMember_IdAndMission_IdOrderByIdDesc(member.getId(), missionId)
.map(submission -> MissionResponse.from(mission, true, submission.getUrl()))
.map(submission -> MissionResponse.of(mission, true, submission.getUrl()))
.orElseGet(() -> MissionResponse.from(mission));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void getMissionByIdWhenSubmitted() {

MissionResponse response = missionService.getMissionById(mission.getId(), member, false);

assertThat(response).isEqualTo(MissionResponse.from(mission, true, submittedPrUrl));
assertThat(response).isEqualTo(MissionResponse.of(mission, true, submittedPrUrl));
}

@Test
Expand Down

0 comments on commit 44e643f

Please sign in to comment.