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

15 lines
395 B
JavaScript

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