[MM-15191] Migrate Webhook.AnalyticsIncomingCount to Sync (#10674)

* Migrate Webhook.AnalyticsIncomingCount to Sync

* update indentation

* fix indentation
Этот коммит содержится в:
tengis b
2019-04-25 15:17:43 +09:00
коммит произвёл Jesús Espino
родитель cf5f5be0d8
Коммит 88810a8ec7
6 изменённых файлов: 47 добавлений и 34 удалений

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

@@ -14,19 +14,26 @@ type WebhookStore struct {
}
// AnalyticsIncomingCount provides a mock function with given fields: teamId
func (_m *WebhookStore) AnalyticsIncomingCount(teamId string) store.StoreChannel {
func (_m *WebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError) {
ret := _m.Called(teamId)
var r0 store.StoreChannel
if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
var r0 int64
if rf, ok := ret.Get(0).(func(string) int64); ok {
r0 = rf(teamId)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(store.StoreChannel)
r0 = ret.Get(0).(int64)
}
var r1 *model.AppError
if rf, ok := ret.Get(1).(func(string) *model.AppError); ok {
r1 = rf(teamId)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(*model.AppError)
}
}
return r0
return r0, r1
}
// AnalyticsOutgoingCount provides a mock function with given fields: teamId