2017-10-12 06:17:42 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2017-10-13 03:07:02 +08:00
|
|
|
const Meetings = new Mongo.Collection('meetings');
|
2019-08-22 01:42:37 +08:00
|
|
|
const RecordMeetings = new Mongo.Collection('record-meetings');
|
2021-05-27 03:09:25 +08:00
|
|
|
const ExternalVideoMeetings = new Mongo.Collection('external-video-meetings');
|
2019-09-09 22:48:50 +08:00
|
|
|
const MeetingTimeRemaining = new Mongo.Collection('meeting-time-remaining');
|
2017-10-12 06:17:42 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
|
|
|
// types of queries for the meetings:
|
|
|
|
// 1. meetingId
|
|
|
|
|
|
|
|
Meetings._ensureIndex({ meetingId: 1 });
|
2019-08-22 02:57:34 +08:00
|
|
|
RecordMeetings._ensureIndex({ meetingId: 1 });
|
2021-05-27 03:09:25 +08:00
|
|
|
ExternalVideoMeetings._ensureIndex({ meetingId: 1 });
|
2019-09-09 22:48:50 +08:00
|
|
|
MeetingTimeRemaining._ensureIndex({ meetingId: 1 });
|
2017-10-12 06:17:42 +08:00
|
|
|
}
|
2019-09-09 22:29:59 +08:00
|
|
|
|
|
|
|
export {
|
|
|
|
RecordMeetings,
|
2021-05-27 03:09:25 +08:00
|
|
|
ExternalVideoMeetings,
|
2019-09-09 22:48:50 +08:00
|
|
|
MeetingTimeRemaining,
|
2019-09-09 22:29:59 +08:00
|
|
|
};
|
2017-10-12 06:17:42 +08:00
|
|
|
export default Meetings;
|