diff --git a/dto/response/meetingResponse.js b/dto/response/meetingResponse.js index ab8ee10adcd504e7309249b1e800165407c79880..e4eb9a56645fb05d8d3706dbf84712b81edb09cb 100644 --- a/dto/response/meetingResponse.js +++ b/dto/response/meetingResponse.js @@ -9,6 +9,7 @@ class MeetingResponse { maxParticipants, voteExpiresAt, isClosed, + confirmedTime, ) { this.id = id; this.title = title; @@ -19,6 +20,7 @@ class MeetingResponse { this.maxParticipants = maxParticipants; this.voteExpiresAt = voteExpiresAt; this.isClosed = isClosed; + this.confirmedTime = confirmedTime; } static from(meeting) { @@ -32,6 +34,7 @@ class MeetingResponse { meeting.maxParticipants, meeting.voteExpiresAt, meeting.isClosed, + meeting.confirmedTime, ); } } diff --git a/dto/response/meetingWithParticipantsResponse.js b/dto/response/meetingWithParticipantsResponse.js index 4a005597b80057a1a4dca795de3a180b6a7808ba..b733aaa8ee200c95d662d550052fccb8303e407a 100644 --- a/dto/response/meetingWithParticipantsResponse.js +++ b/dto/response/meetingWithParticipantsResponse.js @@ -11,6 +11,7 @@ class MeetingWithParticipantsResponse { maxParticipants, voteExpiresAt, isClosed, + confirmedTime, participants, ) { this.id = id; @@ -22,6 +23,7 @@ class MeetingWithParticipantsResponse { this.maxParticipants = maxParticipants; this.voteExpiresAt = voteExpiresAt; this.isClosed = isClosed; + this.confirmedTime = confirmedTime; this.participants = participants; } @@ -36,6 +38,7 @@ class MeetingWithParticipantsResponse { meeting.maxParticipants, meeting.voteExpiresAt, meeting.isClosed, + meeting.confirmedTime, meeting.Participants.map((participant) => ParticipantWithSchedulesResponse.from(participant), ), diff --git a/models/meeting.js b/models/meeting.js index 6172ecaeabb56086754b58703fc31c80e264170e..b1e6323dfe837ca24ecb8edbe231af71974d7260 100644 --- a/models/meeting.js +++ b/models/meeting.js @@ -48,6 +48,10 @@ class Meeting extends Sequelize.Model { allowNull: false, defaultValue: false, }, + confirmedTime: { + type: Sequelize.DATE, + allowNull: true, + }, }, { sequelize,