bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/index.js

33 lines
1.1 KiB
JavaScript
Raw Normal View History

2017-10-12 06:17:42 +08:00
import { Meteor } from 'meteor/meteor';
const collectionOptions = Meteor.isClient ? {
connection: null,
} : {};
const Meetings = new Mongo.Collection('meetings', collectionOptions);
const RecordMeetings = new Mongo.Collection('record-meetings', collectionOptions);
const ExternalVideoMeetings = new Mongo.Collection('external-video-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);
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
Meetings._ensureIndex({ meetingId: 1 });
2019-08-22 02:57:34 +08:00
RecordMeetings._ensureIndex({ meetingId: 1 });
ExternalVideoMeetings._ensureIndex({ meetingId: 1 });
2019-09-09 22:48:50 +08:00
MeetingTimeRemaining._ensureIndex({ meetingId: 1 });
LayoutMeetings._ensureIndex({ meetingId: 1 });
2017-10-12 06:17:42 +08:00
}
export {
RecordMeetings,
ExternalVideoMeetings,
2019-09-09 22:48:50 +08:00
MeetingTimeRemaining,
2022-03-11 03:33:25 +08:00
Notifications,
LayoutMeetings,
};
2017-10-12 06:17:42 +08:00
export default Meetings;