14 lines
291 B
JavaScript
14 lines
291 B
JavaScript
import { Meteor } from 'meteor/meteor';
|
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
connection: null,
|
|
} : {};
|
|
|
|
const Captions = new Mongo.Collection('captions', collectionOptions);
|
|
|
|
if (Meteor.isServer) {
|
|
Captions._ensureIndex({ meetingId: 1, padId: 1 });
|
|
}
|
|
|
|
export default Captions;
|