bigbluebutton-Github/bigbluebutton-html5/imports/api/polls/server/modifiers/clearPolls.js
2016-10-21 15:11:28 -02:00

11 lines
330 B
JavaScript

import Polls from '/imports/api/polls';
import Logger from '/imports/startup/server/logger';
export default function clearPolls(meetingId) {
if (meetingId) {
return Polls.remove({ meetingId, }, Logger.info(`Cleared Polls (${meetingId})`));
} else {
return Polls.remove({}, Logger.info('Cleared Polls (all)'));
}
};