Skip to content

Commit

Permalink
Removed debugging info on statistics. Closes issue #1552
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloschmidt committed Dec 11, 2015
1 parent 8fa87c2 commit 9c3870a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/rocketchat-statistics/server/functions/get.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,12 @@ RocketChat.statistics.get = ->

if RocketChat.models.MRStatistics.findOneById(1)
statistics.maxRoomUsers = RocketChat.models.MRStatistics.findOneById(1).value.max
else
console.log 'max room user statistic not found'.red

if RocketChat.models.MRStatistics.findOneById('c')
statistics.avgChannelUsers = RocketChat.models.MRStatistics.findOneById('c').value.avg
else
console.log 'channel user statistic not found'.red

if RocketChat.models.MRStatistics.findOneById('p')
statistics.avgPrivateGroupUsers = RocketChat.models.MRStatistics.findOneById('p').value.avg
else
console.log 'private group user statistic not found'.red

statistics.lastLogin = RocketChat.models.Users.getLastLogin()
statistics.lastMessageSentAt = RocketChat.models.Messages.getLastTimestamp()
Expand Down

0 comments on commit 9c3870a

Please sign in to comment.