14 lines
268 B
JavaScript
14 lines
268 B
JavaScript
import { Meteor } from 'meteor/meteor';
|
|
|
|
const Users = new Mongo.Collection('users');
|
|
|
|
if (Meteor.isServer) {
|
|
// types of queries for the users:
|
|
// 1. meetingId
|
|
// 2. meetingId, userId
|
|
|
|
Users._ensureIndex({ meetingId: 1, userId: 1 });
|
|
}
|
|
|
|
export default Users;
|