2019-04-06 06:32:21 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
|
|
connection: null,
|
|
|
|
} : {};
|
|
|
|
|
|
|
|
const UserInfos = new Mongo.Collection('users-infos', collectionOptions);
|
2019-04-06 06:32:21 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
2023-04-01 04:40:41 +08:00
|
|
|
UserInfos.createIndexAsync({ meetingId: 1, userId: 1 });
|
2019-04-06 06:32:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default UserInfos;
|