bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/modifiers/clearUsers.js
2017-10-23 13:47:14 -02:00

13 lines
339 B
JavaScript

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