Fix participant delete endpoint
This commit is contained in:
parent
596baff4b3
commit
6a3c5420b0
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user