bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/polls/server/modifiers/clearPolls.js
2017-06-30 11:26:19 -03:00

11 lines
324 B
JavaScript

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 Polls2x (${meetingId})`));
}
return Polls.remove({}, Logger.info('Cleared Polls2x (all)'));
}