2017-10-12 05:25:18 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
|
|
connection: null,
|
|
|
|
} : {};
|
|
|
|
|
|
|
|
const Captions = new Mongo.Collection('captions', collectionOptions);
|
2017-10-12 05:25:18 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
2021-10-16 03:07:13 +08:00
|
|
|
Captions._ensureIndex({ meetingId: 1, locale: 1 });
|
2017-10-12 05:25:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default Captions;
|