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

11 lines
324 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) {
2017-06-30 22:26:19 +08:00
return Polls.remove({ meetingId }, Logger.info(`Cleared Polls2x (${meetingId})`));
2017-06-29 04:37:45 +08:00
}
2017-06-30 22:26:19 +08:00
return Polls.remove({}, Logger.info('Cleared Polls2x (all)'));
2017-06-29 04:37:45 +08:00
}