bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/users/server/modifiers/clearUsers.js

11 lines
306 B
JavaScript
Raw Normal View History

2017-07-03 23:05:35 +08:00
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)'));
}