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

19 lines
499 B
JavaScript
Raw Normal View History

2017-10-12 09:02:23 +08:00
import { Meteor } from 'meteor/meteor';
const collectionOptions = Meteor.isClient ? {
connection: null,
} : {};
const Users = new Mongo.Collection('users', collectionOptions);
export const CurrentUser = new Mongo.Collection('current-user', { connection: null });
2017-10-12 09:02:23 +08:00
if (Meteor.isServer) {
// types of queries for the users:
// 1. meetingId
// 2. meetingId, userId
// { connection: Meteor.isClient ? null : true }
2017-10-12 09:02:23 +08:00
Users._ensureIndex({ meetingId: 1, userId: 1 });
}
export default Users;