bigbluebutton-Github/bigbluebutton-html5/imports/api/presentations/index.js

21 lines
662 B
JavaScript

import { Meteor } from 'meteor/meteor';
const collectionOptions = Meteor.isClient ? {
connection: null,
} : {};
export const UploadingPresentations = Meteor.isClient ? new Mongo.Collection("uploadingPresentations", collectionOptions) : 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;