Fix banned users log

This commit is contained in:
Joao Siebel 2020-09-08 13:56:17 -03:00
parent e46e6f4fc4
commit 96bd372f15
2 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,7 @@ import clearLocalSettings from '/imports/api/local-settings/server/modifiers/cle
import clearRecordMeeting from './clearRecordMeeting';
import clearVoiceCallStates from '/imports/api/voice-call-states/server/modifiers/clearVoiceCallStates';
import clearVideoStreams from '/imports/api/video-streams/server/modifiers/clearVideoStreams';
import BannedUsers from '/imports/api/users/server/store/bannedUsers';
export default function meetingHasEnded(meetingId) {
removeAnnotationsStreamer(meetingId);
@ -44,6 +45,7 @@ export default function meetingHasEnded(meetingId) {
clearRecordMeeting(meetingId);
clearVoiceCallStates(meetingId);
clearVideoStreams(meetingId);
BannedUsers.delete(meetingId);
return Logger.info(`Cleared Meetings with id ${meetingId}`);
});

View File

@ -7,7 +7,7 @@ class BannedUsers {
}
init(meetingId) {
Logger.debug('BannedUsers :: init', meetingId);
Logger.debug('BannedUsers :: init', { meetingId });
if (!this.store[meetingId]) this.store[meetingId] = new Set();
}
@ -20,7 +20,7 @@ class BannedUsers {
}
delete(meetingId) {
Logger.debug('BannedUsers :: delete', meetingId);
Logger.debug('BannedUsers :: delete', { meetingId });
delete this.store[meetingId];
}