2020-02-04 04:41:12 +08:00
|
|
|
import { check } from 'meteor/check';
|
2023-03-14 00:59:52 +08:00
|
|
|
import setGuestPolicy from '../modifiers/setGuestPolicy';
|
2020-02-04 04:41:12 +08:00
|
|
|
|
2023-03-14 00:59:52 +08:00
|
|
|
export default async function handleGuestPolicyChanged({ body }, meetingId) {
|
2020-02-04 04:41:12 +08:00
|
|
|
const { policy } = body;
|
|
|
|
|
|
|
|
check(meetingId, String);
|
|
|
|
check(policy, String);
|
|
|
|
|
2023-03-14 00:59:52 +08:00
|
|
|
const result = await setGuestPolicy(meetingId, policy);
|
|
|
|
return result;
|
2020-02-04 04:41:12 +08:00
|
|
|
}
|