Skip to content

Commit

Permalink
fix : DDAY API 요청에 나라 정보 포함하기
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayon-Hong committed Jun 5, 2024
1 parent 87a2cfa commit 0479428
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public class FastestScheduleResponse {

private String dday;

private String country ;

private String imageUrl;

}
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ public FastestScheduleResponse toFastestScheduleDTO(Schedule schedule) {
response.setId(schedule.getId());
response.setScheduleName(schedule.getScheduleName());
response.setDday(calculateDday(schedule.getStartDate()));
String imageUrl = schedule.getCountry().getImageUrl();
response.setImageUrl(imageUrl);
response.setCountry(schedule.getCountry().getCity());
response.setImageUrl(schedule.getCountry().getImageUrl());

return response;
}
Expand Down

0 comments on commit 0479428

Please sign in to comment.