11 lines
327 B
JavaScript
11 lines
327 B
JavaScript
import Slides from '/imports/api/2.0/slides';
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
export default function clearSlides(meetingId) {
|
|
if (meetingId) {
|
|
return Slides.remove({ meetingId }, Logger.info(`Cleared Slides (${meetingId})`));
|
|
}
|
|
|
|
return Slides.remove({}, Logger.info('Cleared Slides (all)'));
|
|
}
|