bigbluebutton-Github/bigbluebutton-html5/imports/api/voice-users/server/modifiers/clearVoiceUsers.js
2019-04-05 15:10:05 -03:00

15 lines
402 B
JavaScript

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