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

14 lines
358 B
JavaScript
Raw Normal View History

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