[MM-15192] Migrate "WebHook.AnalyticsOutgoingCount" to Sync by default (#10711)
Этот коммит содержится в:
коммит произвёл
Hanzei
родитель
2b6573316d
Коммит
b462941f48
@@ -192,7 +192,12 @@ func (a *App) GetAnalytics(name string, teamId string) (model.AnalyticsRows, *mo
|
||||
close(iHookChan)
|
||||
}()
|
||||
|
||||
oHookChan := a.Srv.Store.Webhook().AnalyticsOutgoingCount(teamId)
|
||||
oHookChan := make(chan store.StoreResult, 1)
|
||||
go func() {
|
||||
c, err := a.Srv.Store.Webhook().AnalyticsOutgoingCount(teamId)
|
||||
oHookChan <- store.StoreResult{Data: c, Err: err}
|
||||
close(oHookChan)
|
||||
}()
|
||||
|
||||
commandChan := make(chan store.StoreResult, 1)
|
||||
go func() {
|
||||
|
||||
@@ -199,9 +199,7 @@ func (a *App) trackActivity() {
|
||||
incomingWebhooksCount = c
|
||||
}
|
||||
|
||||
if owc := <-a.Srv.Store.Webhook().AnalyticsOutgoingCount(""); owc.Err == nil {
|
||||
outgoingWebhooksCount = owc.Data.(int64)
|
||||
}
|
||||
outgoingWebhooksCount, _ = a.Srv.Store.Webhook().AnalyticsOutgoingCount("")
|
||||
|
||||
a.SendDiagnostic(TRACK_ACTIVITY, map[string]interface{}{
|
||||
"registered_users": userCount,
|
||||
|
||||
Ссылка в новой задаче
Block a user