changed to divide meeting check
This commit is contained in:
parent
9938ee6575
commit
fbdea71f8d
@ -30,7 +30,9 @@ export default function userLeaving(credentials, userId) {
|
||||
const User = Users.findOne(selector);
|
||||
const Meeting = Meetings.findOne({ meetingId: meetingId });
|
||||
|
||||
if(Meeting) {
|
||||
if(!Meeting) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!User) {
|
||||
throw new Meteor.Error(
|
||||
@ -65,8 +67,6 @@ export default function userLeaving(credentials, userId) {
|
||||
Users.update(selector, modifier, cb);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const payload = {
|
||||
meeting_id: meetingId,
|
||||
userid: userId,
|
||||
|
Loading…
Reference in New Issue
Block a user