2017-09-08 07:41:03 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
|
|
connection: null,
|
|
|
|
} : {};
|
|
|
|
|
|
|
|
const WhiteboardMultiUser = new Mongo.Collection('whiteboard-multi-user', collectionOptions);
|
2017-09-08 07:41:03 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
|
|
|
// types of queries for the whiteboard-multi-user:
|
|
|
|
// 1. meetingId
|
|
|
|
|
|
|
|
WhiteboardMultiUser._ensureIndex({ meetingId: 1 });
|
|
|
|
}
|
|
|
|
|
|
|
|
export default WhiteboardMultiUser;
|