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 {
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,
);
}
}
......
......@@ -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),
),
......
......@@ -48,6 +48,10 @@ class Meeting extends Sequelize.Model {
allowNull: false,
defaultValue: false,
},
confirmedTime: {
type: Sequelize.DATE,
allowNull: true,
},
},
{
sequelize,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment