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

15 lines
429 B
JavaScript

import UserSettings from '/imports/api/users-settings';
import Logger from '/imports/startup/server/logger';
export default function clearUsersSettings(meetingId) {
try {
const numberAffected = UserSettings.remove({ meetingId });
if (numberAffected) {
Logger.info(`Cleared User Settings (${meetingId})`);
}
} catch (err) {
Logger.error(`Error on clearing User Settings (${meetingId}). ${err}`);
}
}