2018-09-14 02:09:30 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
|
|
connection: null,
|
|
|
|
} : {};
|
|
|
|
|
|
|
|
const UserSettings = new Mongo.Collection('users-settings', collectionOptions);
|
2018-09-14 02:09:30 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
|
|
|
UserSettings._ensureIndex({
|
|
|
|
meetingId: 1, userId: 1,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export default UserSettings;
|