MM-16521 Migrate "Status.GetTotalActiveUsersCount" to Sync by default (#11401)

* initial code

* remove repeated var declaration
Этот коммит содержится в:
Alex Sahin
2019-06-25 17:34:28 +01:00
коммит произвёл Joram Wilander
родитель 130873c2f1
Коммит 30d572000a
5 изменённых файлов: 25 добавлений и 22 удалений

Просмотреть файл

@@ -75,8 +75,8 @@ func (s *Server) DoSecurityUpdateCheck() {
v.Set(PROP_SECURITY_USER_COUNT, strconv.FormatInt(ucr.Data.(int64), 10))
}
if ucr := <-s.Store.Status().GetTotalActiveUsersCount(); ucr.Err == nil {
v.Set(PROP_SECURITY_ACTIVE_USER_COUNT, strconv.FormatInt(ucr.Data.(int64), 10))
if ucr, err := s.Store.Status().GetTotalActiveUsersCount(); err == nil {
v.Set(PROP_SECURITY_ACTIVE_USER_COUNT, strconv.FormatInt(ucr, 10))
}
if teamCount, err := s.Store.Team().AnalyticsTeamCount(); err == nil {