17 lines
247 B
JavaScript
Executable File
17 lines
247 B
JavaScript
Executable File
import Shapes from '/imports/api/shapes';
|
|
|
|
const getCurrentShapes = (whiteboardId) => {
|
|
|
|
if (!whiteboardId) {
|
|
return null;
|
|
}
|
|
|
|
return Shapes.find({
|
|
whiteboardId: whiteboardId,
|
|
}).fetch();
|
|
};
|
|
|
|
export default {
|
|
getCurrentShapes,
|
|
};
|