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