2017-10-12 05:25:18 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2017-10-13 03:07:02 +08:00
|
|
|
const Breakouts = new Mongo.Collection('breakouts');
|
2017-10-12 05:25:18 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
|
|
|
// types of queries for the breakouts:
|
|
|
|
// 1. breakoutId ( handleJoinUrl, roomStarted, clearBreakouts )
|
|
|
|
// 2. parentMeetingId ( updateTimeRemaining )
|
|
|
|
|
|
|
|
Breakouts._ensureIndex({ breakoutId: 1 });
|
|
|
|
Breakouts._ensureIndex({ parentMeetingId: 1 });
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Breakouts;
|