Skip to content
Snippets Groups Projects
Commit cbc85c85 authored by Wo-ogie's avatar Wo-ogie
Browse files

feat: 약속(`meeting`) model에 확정된 약속 시간 field 추가

parent e5984c77
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ class MeetingResponse { ...@@ -9,6 +9,7 @@ class MeetingResponse {
maxParticipants, maxParticipants,
voteExpiresAt, voteExpiresAt,
isClosed, isClosed,
confirmedTime,
) { ) {
this.id = id; this.id = id;
this.title = title; this.title = title;
...@@ -19,6 +20,7 @@ class MeetingResponse { ...@@ -19,6 +20,7 @@ class MeetingResponse {
this.maxParticipants = maxParticipants; this.maxParticipants = maxParticipants;
this.voteExpiresAt = voteExpiresAt; this.voteExpiresAt = voteExpiresAt;
this.isClosed = isClosed; this.isClosed = isClosed;
this.confirmedTime = confirmedTime;
} }
static from(meeting) { static from(meeting) {
...@@ -32,6 +34,7 @@ class MeetingResponse { ...@@ -32,6 +34,7 @@ class MeetingResponse {
meeting.maxParticipants, meeting.maxParticipants,
meeting.voteExpiresAt, meeting.voteExpiresAt,
meeting.isClosed, meeting.isClosed,
meeting.confirmedTime,
); );
} }
} }
......
...@@ -11,6 +11,7 @@ class MeetingWithParticipantsResponse { ...@@ -11,6 +11,7 @@ class MeetingWithParticipantsResponse {
maxParticipants, maxParticipants,
voteExpiresAt, voteExpiresAt,
isClosed, isClosed,
confirmedTime,
participants, participants,
) { ) {
this.id = id; this.id = id;
...@@ -22,6 +23,7 @@ class MeetingWithParticipantsResponse { ...@@ -22,6 +23,7 @@ class MeetingWithParticipantsResponse {
this.maxParticipants = maxParticipants; this.maxParticipants = maxParticipants;
this.voteExpiresAt = voteExpiresAt; this.voteExpiresAt = voteExpiresAt;
this.isClosed = isClosed; this.isClosed = isClosed;
this.confirmedTime = confirmedTime;
this.participants = participants; this.participants = participants;
} }
...@@ -36,6 +38,7 @@ class MeetingWithParticipantsResponse { ...@@ -36,6 +38,7 @@ class MeetingWithParticipantsResponse {
meeting.maxParticipants, meeting.maxParticipants,
meeting.voteExpiresAt, meeting.voteExpiresAt,
meeting.isClosed, meeting.isClosed,
meeting.confirmedTime,
meeting.Participants.map((participant) => meeting.Participants.map((participant) =>
ParticipantWithSchedulesResponse.from(participant), ParticipantWithSchedulesResponse.from(participant),
), ),
......
...@@ -48,6 +48,10 @@ class Meeting extends Sequelize.Model { ...@@ -48,6 +48,10 @@ class Meeting extends Sequelize.Model {
allowNull: false, allowNull: false,
defaultValue: false, defaultValue: false,
}, },
confirmedTime: {
type: Sequelize.DATE,
allowNull: true,
},
}, },
{ {
sequelize, sequelize,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment