bigbluebutton-Github/bigbluebutton-html5/imports/api/breakouts/index.js
2023-02-23 16:42:21 -03:00

19 lines
500 B
JavaScript

import { Meteor } from 'meteor/meteor';
const collectionOptions = Meteor.isClient ? {
connection: null,
} : {};
const Breakouts = new Mongo.Collection('breakouts', collectionOptions);
if (Meteor.isServer) {
// types of queries for the breakouts:
// 1. breakoutId ( handleJoinUrl, roomStarted, clearBreakouts )
// 2. parentMeetingId ( updateTimeRemaining )
Breakouts.createIndexAsync({ breakoutId: 1 });
Breakouts.createIndexAsync({ parentMeetingId: 1 });
}
export default Breakouts;