15 lines
499 B
JavaScript
15 lines
499 B
JavaScript
import UserInfos from '/imports/api/users-infos';
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
export default async function clearUsersInfoForRequester(meetingId, requesterUserId) {
|
|
try {
|
|
const numberAffected = await UserInfos.removeAsync({ 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}`);
|
|
}
|
|
}
|