2017-10-12 08:40:51 +08:00
|
|
|
import Presentations from '/imports/api/2.0/presentations';
|
2016-11-12 03:02:46 +08:00
|
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
|
|
|
|
export default function clearPresentations(meetingId) {
|
|
|
|
if (meetingId) {
|
2017-06-03 03:25:02 +08:00
|
|
|
return Presentations.remove({ meetingId },
|
2017-10-12 08:40:51 +08:00
|
|
|
Logger.info(`Cleared Presentations2x (${meetingId})`));
|
2016-11-12 03:02:46 +08:00
|
|
|
}
|
2017-06-03 03:25:02 +08:00
|
|
|
return Presentations.remove({}, Logger.info('Cleared Presentations (all)'));
|
|
|
|
}
|