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

21 lines
666 B
JavaScript
Raw Normal View History

2017-10-12 08:40:51 +08:00
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);
2017-10-12 08:40:51 +08:00
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 )
2017-10-12 08:40:51 +08:00
Presentations.createIndexAsync({ meetingId: 1, podId: 1, id: 1 });
2017-10-12 08:40:51 +08:00
}
export default Presentations;