2017-10-12 08:40:51 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2017-10-13 03:07:02 +08:00
|
|
|
const Presentations = new Mongo.Collection('presentations');
|
2017-10-12 08:40:51 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
|
|
|
// types of queries for the presentations:
|
2018-04-11 07:27:11 +08:00
|
|
|
// 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
|
|
|
|
2018-04-11 07:27:11 +08:00
|
|
|
Presentations._ensureIndex({ meetingId: 1, podId: 1, id: 1 });
|
2017-10-12 08:40:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default Presentations;
|