bigbluebutton-Github/bigbluebutton-html5/imports/api/note/server/modifiers/clearNote.js

15 lines
347 B
JavaScript
Raw Normal View History

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)');
});
}