bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/handlers/changeMobileFlag.js
2023-04-06 17:43:57 -03:00

14 lines
377 B
JavaScript

import { check } from 'meteor/check';
import setMobile from '/imports/api/users/server/modifiers/setMobile';
export default async function handleChangeMobileFlag(payload, meetingId) {
check(payload.body, Object);
check(meetingId, String);
const { userId: requesterUserId, mobile } = payload.body;
if (mobile) {
await setMobile(meetingId, requesterUserId);
}
}