Migrate 'Channel.AutocompleteInTeamForSearch' to Sync by default (#11285)
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
e53dba3848
Коммит
7e918e38bc
@@ -1774,11 +1774,7 @@ func (a *App) AutocompleteChannelsForSearch(teamId string, userId string, term s
|
||||
|
||||
term = strings.TrimSpace(term)
|
||||
|
||||
result := <-a.Srv.Store.Channel().AutocompleteInTeamForSearch(teamId, userId, term, includeDeleted)
|
||||
if result.Err != nil {
|
||||
return nil, result.Err
|
||||
}
|
||||
return result.Data.(*model.ChannelList), nil
|
||||
return a.Srv.Store.Channel().AutocompleteInTeamForSearch(teamId, userId, term, includeDeleted)
|
||||
}
|
||||
|
||||
func (a *App) SearchAllChannels(term string, opts model.ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError) {
|
||||
|
||||
Ссылка в новой задаче
Block a user