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

15 lines
354 B
JavaScript
Raw Normal View History

import Polls from '/imports/api/polls';
import Logger from '/imports/startup/server/logger';
2016-05-13 01:43:59 +08:00
export default function clearPolls(meetingId) {
if (meetingId) {
return Polls.remove({ meetingId }, () => {
Logger.info(`Cleared Polls (${meetingId})`);
});
2016-05-16 22:35:59 +08:00
}
2016-10-22 01:42:43 +08:00
return Polls.remove({}, () => {
Logger.info('Cleared Polls (all)');
});
2017-06-03 03:25:02 +08:00
}