2016-11-14 19:57:10 +08:00
|
|
|
import Breakouts from '/imports/api/breakouts';
|
|
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
|
2016-11-17 23:20:40 +08:00
|
|
|
export default function clearBreakouts(meetingId) {
|
|
|
|
if (meetingId) {
|
|
|
|
return Breakouts.remove({
|
|
|
|
breakoutMeetingId: meetingId,
|
|
|
|
}, Logger.info(`Cleared Breakouts (${meetingId})`));
|
|
|
|
}
|
|
|
|
|
|
|
|
return Breakouts.remove({}, Logger.info(`Cleared Breakouts (all)`));
|
2016-11-14 19:57:10 +08:00
|
|
|
}
|