2019-04-06 06:32:21 +08:00
|
|
|
import UserInfos from '/imports/api/users-infos';
|
|
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
|
|
|
|
export default function clearUsersInfoForRequester(meetingId, requesterUserId) {
|
2020-11-25 04:44:13 +08:00
|
|
|
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}`);
|
|
|
|
}
|
2019-04-06 06:32:21 +08:00
|
|
|
}
|