Skip to content

Commit

Permalink
Merge pull request #57 from Kusitms-29th-Meetup-TeamE/fix/55/activity…
Browse files Browse the repository at this point in the history
…-dto

Fix: 활동 상세 dto 수정
  • Loading branch information
nohy6630 authored May 19, 2024
2 parents cd785b5 + cf3f4a2 commit 2d95757
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class ActivityDetailsRes {

private List<Personality> personalities;

private List<String> activityImgs;
private String imageUrl;

public static ActivityDetailsRes of(Activity activity) {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MM월 dd일 EEEE", new Locale("ko", "KR"));
Expand All @@ -46,13 +46,13 @@ public static ActivityDetailsRes of(Activity activity) {
.id(activity.getId())
.title(activity.getTitle())
.agency(activity.getAgency())
.agency(activity.getAgencyType().getDescription())
.agencyType(activity.getAgencyType().getDescription())
.location(activity.getLocation())
.time(activity.getTime().format(formatter))
.currentParticipants(activity.getCurrentParticipants())
.maxParticipants(activity.getMaxParticipants())
.personalities(activity.getPersonalities())
.activityImgs(activity.getActivityImgs())
.imageUrl(activity.getImageUrl())
.build();
}
}

0 comments on commit 2d95757

Please sign in to comment.