bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/captions/index.js
2017-09-07 16:41:03 -07:00

15 lines
406 B
JavaScript

import { Meteor } from 'meteor/meteor';
const Captions = new Mongo.Collection('captions2x');
if (Meteor.isServer) {
// types of queries for the captions:
// 1. meetingId, locale, 'captionHistory.index' (History)
// 2. meetingId, locale (Owner update, Caption update, addCaption)
// 3. meetingId ( clear Captions)
Captions._ensureIndex({ meetingId: 1, locale: 1 });
}
export default Captions;