2017-10-12 06:17:42 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
|
|
connection: null,
|
|
|
|
} : {};
|
|
|
|
|
|
|
|
const Meetings = new Mongo.Collection('meetings', collectionOptions);
|
|
|
|
const MeetingTimeRemaining = new Mongo.Collection('meeting-time-remaining', collectionOptions);
|
2022-03-11 03:33:25 +08:00
|
|
|
const Notifications = new Mongo.Collection('notifications', collectionOptions);
|
2022-01-21 01:50:16 +08:00
|
|
|
const LayoutMeetings = new Mongo.Collection('layout-meetings');
|
2017-10-12 06:17:42 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
|
|
|
// types of queries for the meetings:
|
|
|
|
// 1. meetingId
|
|
|
|
|
2023-03-14 00:08:45 +08:00
|
|
|
Meetings.createIndexAsync({ meetingId: 1 });
|
|
|
|
MeetingTimeRemaining.createIndexAsync({ meetingId: 1 });
|
|
|
|
LayoutMeetings.createIndexAsync({ meetingId: 1 });
|
2017-10-12 06:17:42 +08:00
|
|
|
}
|
2019-09-09 22:29:59 +08:00
|
|
|
|
|
|
|
export {
|
2019-09-09 22:48:50 +08:00
|
|
|
MeetingTimeRemaining,
|
2022-03-11 03:33:25 +08:00
|
|
|
Notifications,
|
2022-01-21 01:50:16 +08:00
|
|
|
LayoutMeetings,
|
2019-09-09 22:29:59 +08:00
|
|
|
};
|
2017-10-12 06:17:42 +08:00
|
|
|
export default Meetings;
|