bigbluebutton-Github/bigbluebutton-html5/imports/api/users-persistent-data/index.js

14 lines
338 B
JavaScript

import { Meteor } from 'meteor/meteor';
const collectionOptions = Meteor.isClient ? {
connection: null,
} : {};
const UsersPersistentData = new Mongo.Collection('users-persistent-data', collectionOptions);
if (Meteor.isServer) {
UsersPersistentData._ensureIndex({ meetingId: 1, userId: 1 });
}
export default UsersPersistentData;