Remove unused participant knex query

Also fix returned data from getMeetingsByAccountId
This commit is contained in:
rui hildt 2020-08-28 19:30:36 +02:00
parent c69c510604
commit 63843d1afc
2 changed files with 1 additions and 19 deletions

View File

@ -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 });

View File

@ -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',
// );
// }