2017-10-12 05:25:18 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
|
|
connection: null,
|
|
|
|
} : {};
|
|
|
|
|
|
|
|
const Breakouts = new Mongo.Collection('breakouts', collectionOptions);
|
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 )
|
|
|
|
|
2023-02-24 03:42:21 +08:00
|
|
|
Breakouts.createIndexAsync({ breakoutId: 1 });
|
|
|
|
Breakouts.createIndexAsync({ parentMeetingId: 1 });
|
2017-10-12 05:25:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default Breakouts;
|