ec07b4434d
WIP | Use streams to cursor and optimistic updates WIP | Use streamss to whiteboard and optimistic updates WIP | Remove fake delay Add two way batching (server/client client/server) Fix null userId exception and remove logs wip Add two way batching (server/client client/server) for cursor Remove message frequency from draw-listeners component since we handle on message publication Handle clear and undo messages
23 lines
442 B
JavaScript
Executable File
23 lines
442 B
JavaScript
Executable File
import Annotations from '/imports/ui/components/whiteboard/service';
|
|
|
|
const getCurrentAnnotationsInfo = (whiteboardId) => {
|
|
if (!whiteboardId) {
|
|
return null;
|
|
}
|
|
|
|
return Annotations.find(
|
|
{
|
|
whiteboardId,
|
|
// annotationType: { $ne: 'pencil_base' },
|
|
},
|
|
{
|
|
sort: { position: 1 },
|
|
fields: { status: 1, _id: 1, annotationType: 1 },
|
|
},
|
|
).fetch();
|
|
};
|
|
|
|
export default {
|
|
getCurrentAnnotationsInfo,
|
|
};
|