GH-10652: Migrate WebHookStore.GetOutgoingList method to sync by default (#10703)

* Migrate WebHookStore.GetOutgoingList  method to sync by default

* go fmt the code
Этот коммит содержится в:
Puneeth Reddy
2019-04-25 22:41:45 -07:00
коммит произвёл Jesús Espino
родитель f7982216e4
Коммит 9fc05b5865
5 изменённых файлов: 28 добавлений и 25 удалений

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

@@ -504,11 +504,7 @@ func (a *App) GetOutgoingWebhooksPage(page, perPage int) ([]*model.OutgoingWebho
return nil, model.NewAppError("GetOutgoingWebhooksPage", "api.outgoing_webhook.disabled.app_error", nil, "", http.StatusNotImplemented)
}
if result := <-a.Srv.Store.Webhook().GetOutgoingList(page*perPage, perPage); result.Err != nil {
return nil, result.Err
} else {
return result.Data.([]*model.OutgoingWebhook), nil
}
return a.Srv.Store.Webhook().GetOutgoingList(page*perPage, perPage)
}
func (a *App) GetOutgoingWebhooksForChannelPage(channelId string, page, perPage int) ([]*model.OutgoingWebhook, *model.AppError) {