Skip to content

Commit

Permalink
[#25] fix: change ChildDto tn return string list
Browse files Browse the repository at this point in the history
  • Loading branch information
raae7742 committed Jun 5, 2022
1 parent adae433 commit ae18646
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class ChildDto {
String cname;
Long color;
Long cprofileImg;
List<EventResponseDto> events = new ArrayList<>();
List<String> events = new ArrayList<>();

public ChildDto(Child child) {
this.cid = child.getCid();
Expand All @@ -34,7 +34,7 @@ public ChildDto(Child child) {

for(Event event : child.getEvents()) {
if (event.isRegistered() && event.getDate().isEqual(LocalDate.now()))
this.events.add(new EventResponseDto(event));
this.events.add(event.getTitle());
}
}
}

0 comments on commit ae18646

Please sign in to comment.