bigbluebutton-Github/bigbluebutton-html5/imports/api/connection-status/server/modifiers/clearConnectionStatus.js

15 lines
432 B
JavaScript
Raw Normal View History

2020-04-10 01:01:46 +08:00
import ConnectionStatus from '/imports/api/connection-status';
import Logger from '/imports/startup/server/logger';
export default function clearConnectionStatus(meetingId) {
if (meetingId) {
return ConnectionStatus.remove({ meetingId }, () => {
Logger.info(`Cleared ConnectionStatus (${meetingId})`);
});
}
return ConnectionStatus.remove({}, () => {
Logger.info('Cleared ConnectionStatus (all)');
});
}