bigbluebutton-Github/bigbluebutton-html5/imports/api/timer/server/modifiers/clearTimer.js

15 lines
354 B
JavaScript
Raw Normal View History

2023-05-11 04:03:20 +08:00
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)');
});
}