Skip to content
Snippets Groups Projects
Commit bef30033 authored by 조대희's avatar 조대희
Browse files

refactor: 미팅 상세 정보 조회 로직 수정에 따른 dto 수정 (#19)

parent 8f1a7211
No related branches found
No related tags found
No related merge requests found
// dtos/MeetingResponseDTO.js
class MeetingDetailResponseDTO {
constructor(meeting) {
constructor(meeting, isScheduleConflict) {
this.id = meeting.id;
this.title = meeting.title;
this.description = meeting.description;
......@@ -10,6 +10,7 @@ class MeetingDetailResponseDTO {
this.time_idx_deadline = meeting.time_idx_deadline;
this.type = meeting.type;
this.creatorName = meeting.creator ? meeting.creator.name : 'Unknown';
this.isScheduleConflict = isScheduleConflict;
this.participants = meeting.participants.map(participant => ({
userId: participant.user_id,
name: participant.participantUser ? participant.participantUser.name : 'Unknown',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment