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

14 lines
342 B
JavaScript
Raw Normal View History

2021-03-20 04:12:27 +08:00
import { Meteor } from 'meteor/meteor';
const collectionOptions = Meteor.isClient ? {
connection: null,
} : {};
const UsersPersistentData = new Mongo.Collection('users-persistent-data', collectionOptions);
2021-03-20 04:12:27 +08:00
if (Meteor.isServer) {
UsersPersistentData.createIndexAsync({ meetingId: 1, userId: 1 });
2021-03-20 04:12:27 +08:00
}
export default UsersPersistentData;