bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/voice-users/server/modifiers/clearVoiceUsers.js
2017-08-01 12:00:07 -03:00

11 lines
345 B
JavaScript

import Logger from '/imports/startup/server/logger';
import VoiceUsers from '/imports/api/2.0/voice-users';
export default function clearVoiceUser(meetingId) {
if (meetingId) {
return VoiceUsers.remove({ meetingId }, Logger.info(`Cleared Users (${meetingId})`));
}
return VoiceUsers.remove({}, Logger.info('Cleared Users (all)'));
}