Channel.GetDeleted to sync by default (#11205)

Этот коммит содержится в:
Rodrigo Villablanca Vásquez
2019-06-17 13:46:37 -04:00
коммит произвёл Christopher Poile
родитель 6bb147c380
Коммит 651c3196a0
5 изменённых файлов: 39 добавлений и 43 удалений

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

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