bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/handlers/userPinChanged.js
Max Franke 85ad9a5e30 feat(video): webcam video pinning server side logic
Add the new ChangeUserPinState messages to handle the new video pinning
functionality
2021-12-21 16:58:38 -03:00

14 lines
358 B
JavaScript

import { check } from 'meteor/check';
import changePin from '../modifiers/changePin';
export default function handlePinAssigned({ body }, meetingId) {
const { userId, pin, changedBy } = body;
check(meetingId, String);
check(userId, String);
check(pin, Boolean);
check(changedBy, String);
return changePin(meetingId, userId, pin, changedBy);
}