bigbluebutton-Github/bigbluebutton-html5/imports/api/timer/server/methods/switchTimer.js
Pedro Beschorner Marin 5463a4a423 Stopwatch handlers
2023-05-18 15:29:31 -03:00

16 lines
483 B
JavaScript

import { check } from 'meteor/check';
import updateTimer from '/imports/api/timer/server/modifiers/updateTimer';
import { extractCredentials } from '/imports/api/common/server/helpers';
export default function switchTimer(stopwatch) {
check(stopwatch, Boolean);
const { meetingId } = extractCredentials(this.userId);
check(meetingId, String);
// Bogus value of time. It won't update the collection
const time = 0;
updateTimer('switch', meetingId, time, stopwatch);
}