2017-09-08 07:41:03 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
|
|
connection: null,
|
|
|
|
} : {};
|
|
|
|
|
|
|
|
const VoiceUsers = new Mongo.Collection('voiceUsers', collectionOptions);
|
2017-09-08 07:41:03 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
|
|
|
// types of queries for the voice users:
|
|
|
|
// 1. intId
|
|
|
|
// 2. meetingId, intId
|
|
|
|
|
2023-04-01 04:40:41 +08:00
|
|
|
VoiceUsers.createIndexAsync({ intId: 1 });
|
|
|
|
VoiceUsers.createIndexAsync({ meetingId: 1, intId: 1 });
|
2017-09-08 07:41:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default VoiceUsers;
|