11 lines
316 B
JavaScript
11 lines
316 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})`));
|
|
}
|
|
|
|
return Polls.remove({}, Logger.info('Cleared Polls (all)'));
|
|
}
|