bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/polls/server/modifiers/clearPolls.js

11 lines
320 B
JavaScript
Raw Normal View History

2017-06-29 04:37:45 +08:00
import Polls from '/imports/api/2.0/polls';
import Logger from '/imports/startup/server/logger';
export default function clearPolls(meetingId) {
if (meetingId) {
return Polls.remove({ meetingId }, Logger.info(`Cleared Polls (${meetingId})`));
}
return Polls.remove({}, Logger.info('Cleared Polls (all)'));
}