2020-01-15 23:01:28 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import removeGuest from '../modifiers/removeGuest';
|
|
|
|
|
2023-03-09 01:35:40 +08:00
|
|
|
export default async function handleGuestWaitingLeft({ body }, meetingId) {
|
2020-01-15 23:01:28 +08:00
|
|
|
const { userId } = body;
|
|
|
|
check(meetingId, String);
|
|
|
|
check(userId, String);
|
|
|
|
|
2023-03-09 01:35:40 +08:00
|
|
|
const result = await removeGuest(meetingId, userId);
|
|
|
|
return result;
|
2020-01-15 23:01:28 +08:00
|
|
|
}
|