15 lines
347 B
JavaScript
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)');
|
||
|
});
|
||
|
}
|