Skip to content

Commit

Permalink
[HOTFIX] 내 모임 목록 조회시 마지막 채팅 필드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ehs208 committed Feb 5, 2025
1 parent c8ce009 commit 19bc7c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public List<MyMeetingListResponseDto> findMyMeetingList(Long memberId, Participa
.select(meetingParticipant.count())
.from(meetingParticipant)
.where(meetingParticipant.meeting.id.eq(meeting.id)),
"participantCount")
"participantCount"),
meeting.chatRoom.lastChatAt
))
.from(meeting)
// 배달/오프라인 모임 테이블과 left join
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class MyMeetingListResponseDto {
private String location;
private LocalDateTime dueDateTime;
private Long participantCount;
private LocalDateTime lastChatAt;

public MyMeetingListResponseDto(
String meetingType,
Expand All @@ -32,8 +33,9 @@ public MyMeetingListResponseDto(
LocalDateTime createdAt,
String location,
LocalDateTime dueDateTime,
Long participantCount) {

Long participantCount,
LocalDateTime lastChatAt) {

this.meetingType = meetingType;
this.id = id;
this.meetingName = meetingName;
Expand All @@ -45,5 +47,6 @@ public MyMeetingListResponseDto(
this.location = location;
this.dueDateTime = dueDateTime;
this.participantCount = participantCount;
this.lastChatAt = lastChatAt;
}
}

0 comments on commit 19bc7c1

Please sign in to comment.