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