2018-09-14 02:09:30 +08:00
|
|
|
import UserSettings from '/imports/api/users-settings';
|
|
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
|
|
|
|
export default function clearUsersSettings(meetingId) {
|
2020-11-25 04:44:13 +08:00
|
|
|
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}`);
|
|
|
|
}
|
2018-09-14 02:09:30 +08:00
|
|
|
}
|