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

14 lines
377 B
JavaScript
Raw Normal View History

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);
}
}