Migrate GetDeletedByName from ChannelStore to return error interface (#14709)

Automatic Merge
Этот коммит содержится в:
Rodrigo Villablanca
2020-06-18 00:26:35 -04:00
коммит произвёл GitHub
родитель 1d9c8a490d
Коммит 8dc7c5762f
8 изменённых файлов: 15 добавлений и 25 удалений

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

@@ -146,7 +146,7 @@ type ChannelStore interface {
GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, error)
GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, error)
GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, error)
GetDeletedByName(team_id string, name string) (*model.Channel, *model.AppError)
GetDeletedByName(team_id string, name string) (*model.Channel, error)
GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, error)
GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, error)
GetAllChannels(page, perPage int, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, error)