bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/index.js
Max Franke 7f926edfcc refactor(external videos): add own collection
Refactor the external videos collection, moving the logic and functionalities
outside of /imports/api/meetings to a new location in /external-videos/server/modifiers
in order to decrease the coupling between the functionalities, favoring
the maintenance.
2021-06-02 12:50:40 -03:00

24 lines
705 B
JavaScript

import { Meteor } from 'meteor/meteor';
const Meetings = new Mongo.Collection('meetings');
const RecordMeetings = new Mongo.Collection('record-meetings');
const ExternalVideoMeetings = new Mongo.Collection('external-video-meetings');
const MeetingTimeRemaining = new Mongo.Collection('meeting-time-remaining');
if (Meteor.isServer) {
// types of queries for the meetings:
// 1. meetingId
Meetings._ensureIndex({ meetingId: 1 });
RecordMeetings._ensureIndex({ meetingId: 1 });
ExternalVideoMeetings._ensureIndex({ meetingId: 1 });
MeetingTimeRemaining._ensureIndex({ meetingId: 1 });
}
export {
RecordMeetings,
ExternalVideoMeetings,
MeetingTimeRemaining,
};
export default Meetings;