bigbluebutton-Github/bigbluebutton-html5/imports/api/note/server/modifiers/clearNote.js
2019-05-08 20:36:36 +00:00

15 lines
347 B
JavaScript

import Note from '/imports/api/note';
import Logger from '/imports/startup/server/logger';
export default function clearNote(meetingId) {
if (meetingId) {
return Note.remove({ meetingId }, () => {
Logger.info(`Cleared Note (${meetingId})`);
});
}
return Note.remove({}, () => {
Logger.info('Cleared Note (all)');
});
}