Fix participant delete endpoint

This commit is contained in:
rui hildt 2020-05-06 15:27:25 +02:00
parent 596baff4b3
commit 6a3c5420b0

View File

@ -41,8 +41,8 @@ function updateParticipant(data, account_id, meeting_id) {
]); ]);
} }
function deleteParticipant(id) { function deleteParticipant(account_id, meeting_id) {
return db('participant').where({ id }).del(); return db('participant').where({ account_id, meeting_id }).del();
} }
function getParticipantById(account_id, meeting_id) { function getParticipantById(account_id, meeting_id) {