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 068ebae commit c8ce009
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ public class MeetingDetailResponseDto {
private List<ParticipantDto> participants;
private OfflineMeetingCategory offlineMeetingCategory;
private Long chatRoomId;
private LocalDateTime lastChatAt;

@Builder
private MeetingDetailResponseDto(String meetingType, String meetingName, String meetingDescription,
GenderRestriction genderRestriction, String location, LocalDateTime dueDateTime,
String backgroundImage, Boolean isOwner, Boolean isCurrentUser, List<ParticipantDto> participants,
OfflineMeetingCategory offlineMeetingCategory, Long chatRoomId) {
OfflineMeetingCategory offlineMeetingCategory, Long chatRoomId, LocalDateTime lastChatAt) {
this.meetingType = meetingType;
this.meetingName = meetingName;
this.meetingDescription = meetingDescription;
Expand All @@ -41,6 +42,7 @@ private MeetingDetailResponseDto(String meetingType, String meetingName, String
this.participants = participants;
this.offlineMeetingCategory = offlineMeetingCategory;
this.chatRoomId = chatRoomId;
this.lastChatAt = lastChatAt;
}

@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ public MeetingDetailResponseDto getMeetingDetail(Long meetingId, UserDetails use
.offlineMeetingCategory(
meeting instanceof OfflineMeeting ? ((OfflineMeeting)meeting).getOfflineMeetingCategory() : null)
.chatRoomId(meeting.getChatRoom().getId())
.lastChatAt(meeting.getChatRoom().getLastChatAt())
.build();
}

Expand Down

0 comments on commit c8ce009

Please sign in to comment.