[MM-16572] Migrate "User.AnalyticsGetSystemAdminCount" to Sync by default (#11484)

Этот коммит содержится в:
SezalAgrawal
2019-07-02 14:51:38 +05:30
коммит произвёл Hanzei
родитель b664291f21
Коммит f881b00650
5 изменённых файлов: 28 добавлений и 23 удалений

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

@@ -708,8 +708,8 @@ func (a *App) trackServer() {
"operating_system": runtime.GOOS,
}
if scr := <-a.Srv.Store.User().AnalyticsGetSystemAdminCount(); scr.Err == nil {
data["system_admins"] = scr.Data.(int64)
if scr, err := a.Srv.Store.User().AnalyticsGetSystemAdminCount(); err == nil {
data["system_admins"] = scr
}
a.SendDiagnostic(TRACK_SERVER, data)