2017-10-12 08:40:51 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
|
|
connection: null,
|
|
|
|
} : {};
|
|
|
|
|
2022-08-03 04:25:15 +08:00
|
|
|
export const UploadingPresentations = Meteor.isClient ? new Mongo.Collection("uploadingPresentations", collectionOptions) : null;
|
2021-10-20 04:35:39 +08:00
|
|
|
const Presentations = new Mongo.Collection('presentations', collectionOptions);
|
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
|
|
|
|
2023-04-01 04:40:41 +08:00
|
|
|
Presentations.createIndexAsync({ meetingId: 1, podId: 1, id: 1 });
|
2017-10-12 08:40:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default Presentations;
|