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) {
|
2023-04-01 04:40:41 +08:00
|
|
|
UserSettings.createIndexAsync({
|
2018-09-14 02:09:30 +08:00
|
|
|
meetingId: 1, userId: 1,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export default UserSettings;
|