bigbluebutton-Github/bigbluebutton-html5/imports/api/users/index.js
2023-03-20 16:35:52 -03:00

19 lines
503 B
JavaScript

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 });
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;