bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/handlers/changeRole.js
2020-11-23 10:13:46 -03:00

12 lines
340 B
JavaScript

import { check } from 'meteor/check';
import changeRole from '/imports/api/users/server/modifiers/changeRole';
export default function handleChangeRole(payload, meetingId) {
check(payload.body, Object);
check(meetingId, String);
const { userId, role, changedBy } = payload.body;
changeRole(role, userId, meetingId, changedBy);
}