bigbluebutton-Github/bigbluebutton-html5/imports/api/guest-users/server/handlers/guestApproved.js

12 lines
387 B
JavaScript
Raw Normal View History

import { check } from 'meteor/check';
import setGuestStatus from '../modifiers/setGuestStatus';
export default function handleGuestApproved({ body }, meetingId) {
const { approvedBy, guests } = body;
check(meetingId, String);
check(approvedBy, String);
check(guests, Array);
return guests.forEach(guest => setGuestStatus(meetingId, guest.guest, guest.status, approvedBy));
}