bigbluebutton-Github/bigbluebutton-html5/imports/api/presentations/index.js
2022-05-13 02:47:41 +00:00

20 lines
532 B
JavaScript

import { Meteor } from 'meteor/meteor';
const collectionOptions = Meteor.isClient ? {
connection: null,
} : {};
const Presentations = new Mongo.Collection('presentations', collectionOptions);
if (Meteor.isServer) {
// types of queries for the presentations:
// 1. meetingId, podId, id ( 3 )
// 2. meetingId, id ( 1 )
// 3. meetingId, id, current ( 2 )
// 4. meetingId ( 1 )
Presentations._ensureIndex({ meetingId: 1, podId: 1, id: 1 });
}
export default Presentations;