From 63843d1afca5156663c0b377f3beee2886dc3357 Mon Sep 17 00:00:00 2001 From: rui hildt Date: Fri, 28 Aug 2020 19:30:36 +0200 Subject: [PATCH] Remove unused participant knex query Also fix returned data from getMeetingsByAccountId --- api/models/accountModel.js | 2 +- api/models/participantModel.js | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) 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', -// ); -// }