bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/handlers/changeRole.js
2023-03-20 16:35:52 -03:00

12 lines
352 B
JavaScript

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