13 lines
334 B
JavaScript
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;
|
|
}
|