MM-15118: Migrates the "WebHook.DeleteIncoming" to Sync by default. (#10706)

* cherry commit for DeleteIncoming and generate store mocks

* go fmt the code and fix go vet issue
Этот коммит содержится в:
Puneeth Reddy
2019-04-29 22:34:08 -07:00
коммит произвёл Jesús Espino
родитель 13403b2cc1
Коммит eb3923c835
6 изменённых файлов: 17 добавлений и 18 удалений

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

@@ -58,15 +58,15 @@ func (_m *WebhookStore) ClearCaches() {
}
// DeleteIncoming provides a mock function with given fields: webhookId, time
func (_m *WebhookStore) DeleteIncoming(webhookId string, time int64) store.StoreChannel {
func (_m *WebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError {
ret := _m.Called(webhookId, time)
var r0 store.StoreChannel
if rf, ok := ret.Get(0).(func(string, int64) store.StoreChannel); ok {
var r0 *model.AppError
if rf, ok := ret.Get(0).(func(string, int64) *model.AppError); ok {
r0 = rf(webhookId, time)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(store.StoreChannel)
r0 = ret.Get(0).(*model.AppError)
}
}