11 lines
325 B
JavaScript
Executable File
11 lines
325 B
JavaScript
Executable File
import Shapes from '/imports/api/shapes';
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
export default function clearShapes(meetingId) {
|
|
if (meetingId) {
|
|
return Shapes.remove({ meetingId, }, Logger.info(`Cleared Shapes (${meetingId})`));
|
|
}
|
|
|
|
return Shapes.remove({}, Logger.info('Cleared Shapes (all)'));
|
|
};
|