bigbluebutton-Github/bigbluebutton-html5/imports/api/timer/server/modifiers/clearTimer.js
2023-05-18 15:29:31 -03:00

15 lines
354 B
JavaScript

import Timer from '/imports/api/timer';
import Logger from '/imports/startup/server/logger';
export default function clearTimer(meetingId) {
if (meetingId) {
return Timer.remove({ meetingId }, () => {
Logger.info(`Cleared Timer (${meetingId})`);
});
}
return Timer.remove({}, () => {
Logger.info('Cleared Timer (all)');
});
}