2017-10-12 10:00:28 +08:00
|
|
|
import Captions from '/imports/api/captions';
|
2017-01-18 20:53:33 +08:00
|
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
|
|
|
|
export default function clearCaptions(meetingId) {
|
|
|
|
if (meetingId) {
|
2018-12-15 04:19:10 +08:00
|
|
|
return Captions.remove({ meetingId }, () => {
|
|
|
|
Logger.info(`Cleared Captions (${meetingId})`);
|
|
|
|
});
|
2017-01-18 20:53:33 +08:00
|
|
|
}
|
|
|
|
|
2018-12-15 04:19:10 +08:00
|
|
|
return Captions.remove({}, () => {
|
|
|
|
Logger.info('Cleared Captions (all)');
|
|
|
|
});
|
2017-06-03 03:25:02 +08:00
|
|
|
}
|