remove voice user check in userEjected.js
This commit is contained in:
parent
fdb38bb89c
commit
3eed1ec1c0
@ -1,8 +1,6 @@
|
||||
import { check } from 'meteor/check';
|
||||
import Logger from '/imports/startup/server/logger';
|
||||
import Users from '/imports/api/2.0/users';
|
||||
import VoiceUsers from '/imports/api/2.0/voice-users';
|
||||
import removeVoiceUser from '/imports/api/2.0/voice-users/server/modifiers/removeVoiceUser';
|
||||
|
||||
export default function userEjected(meetingId, userId) {
|
||||
check(meetingId, String);
|
||||
@ -25,18 +23,6 @@ export default function userEjected(meetingId, userId) {
|
||||
},
|
||||
};
|
||||
|
||||
const user = VoiceUsers.findOne({ meetingId, voiceUserId: userId });
|
||||
|
||||
if (user) {
|
||||
const voiceUser = {
|
||||
voiceConf: user.voiceConf,
|
||||
voiceUserId: user.voiceUserId,
|
||||
intId: user.intId,
|
||||
};
|
||||
|
||||
removeVoiceUser(meetingId, voiceUser);
|
||||
}
|
||||
|
||||
const cb = (err, numChanged) => {
|
||||
if (err) {
|
||||
return Logger.error(`Ejecting user from collection: ${err}`);
|
||||
|
Loading…
Reference in New Issue
Block a user