11 lines
330 B
JavaScript
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)'));
|
|
}
|
|
};
|