bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/modifiers/clearUsers.js
2017-02-23 18:15:13 +00:00

11 lines
317 B
JavaScript
Executable File

import Users from '/imports/api/users';
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)'));
};