bigbluebutton-Github/bigbluebutton-html5/imports/api/users/index.js
2023-11-30 15:20:12 +01:00

18 lines
416 B
JavaScript

import { Meteor } from 'meteor/meteor';
const collectionOptions = Meteor.isClient ? {
connection: null,
} : {};
const Users = new Mongo.Collection('users', collectionOptions);
if (Meteor.isServer) {
// types of queries for the users:
// 1. meetingId
// 2. meetingId, userId
// { connection: Meteor.isClient ? null : true }
Users.createIndexAsync({ meetingId: 1, userId: 1 });
}
export default Users;