bigbluebutton-Github/bigbluebutton-html5/imports/api/users-infos/server/modifiers/clearUserInfoForRequester.js
2020-11-24 17:44:13 -03:00

15 lines
482 B
JavaScript

import UserInfos from '/imports/api/users-infos';
import Logger from '/imports/startup/server/logger';
export default function clearUsersInfoForRequester(meetingId, requesterUserId) {
try {
const numberAffected = UserInfos.remove({ meetingId });
if (numberAffected) {
Logger.info(`Cleared User Infos requested by user=${requesterUserId}`);
}
} catch (err) {
Logger.info(`Error on clearing User Infos requested by user=${requesterUserId}. ${err}`);
}
}