c61dcbce36
Plus linting warnings, no multi-user yet
16 lines
313 B
JavaScript
Executable File
16 lines
313 B
JavaScript
Executable File
import Cursor from '/imports/api/2.0/cursor';
|
|
import Users from '/imports/api/2.0/users';
|
|
|
|
const getCurrentCursor = () => {
|
|
const user = Users.findOne({ 'user.presenter': true });
|
|
if (user) {
|
|
return Cursor.findOne({ userId: user.userId });
|
|
}
|
|
|
|
return false;
|
|
};
|
|
|
|
export default {
|
|
getCurrentCursor,
|
|
};
|