bigbluebutton-Github/bigbluebutton-html5/imports/api/connection-status/server/modifiers/clearConnectionStatus.js
2020-05-14 10:32:55 -03:00

15 lines
432 B
JavaScript

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)');
});
}