bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/server/handlers/guestPolicyChanged.js
2023-03-20 16:24:41 -03:00

13 lines
334 B
JavaScript

import { check } from 'meteor/check';
import setGuestPolicy from '../modifiers/setGuestPolicy';
export default async function handleGuestPolicyChanged({ body }, meetingId) {
const { policy } = body;
check(meetingId, String);
check(policy, String);
const result = await setGuestPolicy(meetingId, policy);
return result;
}