2019-04-06 06:32:21 +08:00
|
|
|
import UserInfos from '/imports/api/users-infos';
|
|
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
|
2023-03-09 21:30:34 +08:00
|
|
|
export default async function clearUsersInfoForRequester(meetingId, requesterUserId) {
|
2020-11-25 04:44:13 +08:00
|
|
|
try {
|
2023-03-09 21:30:34 +08:00
|
|
|
const numberAffected = await UserInfos.removeAsync({ meetingId });
|
2020-11-25 04:44:13 +08:00
|
|
|
|
|
|
|
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
|
|
|
}
|