Channel.GetAllChannels to sync by default (#11206)

* Channel.GetAllChannels to sync by default

* Improvements in test of GetAllChannels
Этот коммит содержится в:
Rodrigo Villablanca Vásquez
2019-06-20 10:48:51 -04:00
коммит произвёл Jesús Espino
родитель 01fa648886
Коммит b1631026d8
5 изменённых файлов: 57 добавлений и 57 удалений

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

@@ -1240,11 +1240,7 @@ func (a *App) GetAllChannels(page, perPage int, opts model.ChannelSearchOpts) (*
NotAssociatedToGroup: opts.NotAssociatedToGroup,
IncludeDeleted: opts.IncludeDeleted,
}
result := <-a.Srv.Store.Channel().GetAllChannels(page*perPage, perPage, storeOpts)
if result.Err != nil {
return nil, result.Err
}
return result.Data.(*model.ChannelListWithTeamData), nil
return a.Srv.Store.Channel().GetAllChannels(page*perPage, perPage, storeOpts)
}
func (a *App) GetDeletedChannels(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError) {