2021-03-20 04:12:27 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
|
|
connection: null,
|
|
|
|
} : {};
|
|
|
|
|
|
|
|
const UsersPersistentData = new Mongo.Collection('users-persistent-data', collectionOptions);
|
2021-03-20 04:12:27 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
2023-03-20 21:21:34 +08:00
|
|
|
UsersPersistentData.createIndexAsync({ meetingId: 1, userId: 1 });
|
2021-03-20 04:12:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default UsersPersistentData;
|