2017-10-12 08:59:35 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2017-10-13 03:07:02 +08:00
|
|
|
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
|
|
|
|
// 2. meetingId, presentationId
|
|
|
|
// 3. meetingId, presentationId, id
|
|
|
|
|
|
|
|
Slides._ensureIndex({ meetingId: 1, presentationId: 1, id: 1 });
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Slides;
|