|
|
|
|
@ -69,10 +69,9 @@ export const statistics = { |
|
|
|
|
statistics.activeGuests = Users.getActiveLocalGuestCount(); |
|
|
|
|
statistics.nonActiveUsers = Users.find({ active: false }).count(); |
|
|
|
|
statistics.appUsers = Users.find({ type: 'app' }).count(); |
|
|
|
|
statistics.onlineUsers = Meteor.users.find({ statusConnection: 'online' }).count(); |
|
|
|
|
statistics.awayUsers = Meteor.users.find({ statusConnection: 'away' }).count(); |
|
|
|
|
// TODO: Get statuses from the `status` property.
|
|
|
|
|
statistics.busyUsers = Meteor.users.find({ statusConnection: 'busy' }).count(); |
|
|
|
|
statistics.onlineUsers = Meteor.users.find({ status: 'online' }).count(); |
|
|
|
|
statistics.awayUsers = Meteor.users.find({ status: 'away' }).count(); |
|
|
|
|
statistics.busyUsers = Meteor.users.find({ status: 'busy' }).count(); |
|
|
|
|
statistics.totalConnectedUsers = statistics.onlineUsers + statistics.awayUsers; |
|
|
|
|
statistics.offlineUsers = statistics.totalUsers - statistics.onlineUsers - statistics.awayUsers - statistics.busyUsers; |
|
|
|
|
|
|
|
|
|
|