2017-10-12 05:34:23 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2017-10-13 03:07:02 +08:00
|
|
|
const Cursor = new Mongo.Collection('cursor');
|
2017-10-12 05:34:23 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
|
|
|
// types of queries for the cursor:
|
|
|
|
// 1. meetingId (clear)
|
|
|
|
// 2. meetingId, userId
|
|
|
|
|
|
|
|
Cursor._ensureIndex({ meetingId: 1, userId: 1 });
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Cursor;
|