bigbluebutton-Github/bigbluebutton-html5/imports/api/timer/server/handlers/timerSet.js

18 lines
386 B
JavaScript
Raw Normal View History

import { check } from 'meteor/check';
import updateTimer from '/imports/api/timer/server/modifiers/updateTimer';
export default function handleTimerSet({ body }, meetingId) {
const { userId, time } = body;
check(meetingId, String);
check(userId, String);
check(time, Number);
updateTimer({
action: 'set',
meetingId,
requesterUserId: userId,
time,
});
}