Skip to content

Commit

Permalink
Merge pull request #37 from SWM-Flash/hotfix/FLASH-238-gym-name-in-pr…
Browse files Browse the repository at this point in the history
…oblem-detail-response

클라이밍장 단건 조회 응답에 클라이밍장 이름 추가
  • Loading branch information
ChoiWonYu authored Aug 2, 2024
2 parents d435e3d + 8043d89 commit f3069a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
public record ProblemDetailResponseDto(UUID id, String sector, String difficulty,
LocalDate settingDate, LocalDate removalDate,
boolean isFakeRemovalDate, boolean hasSolution,
String imageUrl) {
String imageUrl, String gymName) {

public static ProblemDetailResponseDto of(final QueryProblem queryProblem) {
return new ProblemDetailResponseDto(queryProblem.getId(), queryProblem.getSectorName(),
queryProblem.getDifficultyName(), queryProblem.getSettingDate(),
queryProblem.getRemovalDate(), queryProblem.getIsFakeRemovalDate(),
queryProblem.getHasSolution(), queryProblem.getImageUrl());
queryProblem.getHasSolution(), queryProblem.getImageUrl(), queryProblem.getGymName());
}
}

0 comments on commit f3069a2

Please sign in to comment.