diff --git a/api/models/accountModel.js b/api/models/accountModel.js index 25dab5d..834b3a5 100644 --- a/api/models/accountModel.js +++ b/api/models/accountModel.js @@ -47,9 +47,9 @@ function getMeetingsByAccountId(account_id) { 'm.title', 'm.description', 'm.start_time', - 'm.timezone', 'm.duration', 'm.status', + 'm.password', ) .join('meeting as m', { 'm.id': 'p.meeting_id' }) .where({ account_id }); diff --git a/api/models/participantModel.js b/api/models/participantModel.js index ae5d7ce..176f46e 100644 --- a/api/models/participantModel.js +++ b/api/models/participantModel.js @@ -4,8 +4,6 @@ module.exports = { addParticipant, updateParticipant, deleteParticipant, - // getMeetingsByParticipantId, - // getParticipantById, }; function addParticipant(data) { @@ -42,19 +40,3 @@ function updateParticipant(data, id) { function deleteParticipant(id) { return db('participant').where({ id }).del(); } - -// function getParticipantById(id) { -// return db('participant') -// .where({ id }) -// .first() -// .select( -// 'id', -// 'email', -// 'account_id', -// 'meeting_id', -// 'quorum', -// 'mandatory', -// 'host', -// 'answered', -// ); -// }