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

21 lines
646 B
JavaScript
Raw Normal View History

2017-10-12 08:59:35 +08:00
import { Meteor } from 'meteor/meteor';
const Slides = new Mongo.Collection('slides');
2017-10-12 08:59:35 +08:00
if (Meteor.isServer) {
// types of queries for the slides:
// 1. meetingId ( 1 )
// 2. meetingId, podId ( 1 )
// 3. meetingId, presentationId ( 1 )
// 3. meetingId, presentationId, num ( 1 )
// 4. meetingId, podId, presentationId, id ( 3 ) - incl. resizeSlide, which can be intense
// 5. meetingId, podId, presentationId, current ( 1 )
Slides._ensureIndex({
meetingId: 1, podId: 1, presentationId: 1, id: 1,
});
2017-10-12 08:59:35 +08:00
}
export default Slides;