bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/users/server/modifiers/clearUsers.js
Oleksandr Zhurbenko 251bd22738 PR review fixes
2017-09-06 12:36:52 -07:00

11 lines
306 B
JavaScript

import Users from './../../';
import Logger from '/imports/startup/server/logger';
export default function clearUsers(meetingId) {
if (meetingId) {
return Users.remove({ meetingId }, Logger.info(`Cleared Users (${meetingId})`));
}
return Users.remove({}, Logger.info('Cleared Users (all)'));
}