Migrate Channel.GetChannelsByScheme to Sync by default (#11278)
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
d1a594e504
Коммит
eea8df75b0
@@ -146,11 +146,7 @@ func (a *App) GetChannelsForScheme(scheme *model.Scheme, offset int, limit int)
|
||||
if err := a.IsPhase2MigrationCompleted(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
result := <-a.Srv.Store.Channel().GetChannelsByScheme(scheme.Id, offset, limit)
|
||||
if result.Err != nil {
|
||||
return nil, result.Err
|
||||
}
|
||||
return result.Data.(model.ChannelList), nil
|
||||
return a.Srv.Store.Channel().GetChannelsByScheme(scheme.Id, offset, limit)
|
||||
}
|
||||
|
||||
func (a *App) IsPhase2MigrationCompleted() *model.AppError {
|
||||
|
||||
Ссылка в новой задаче
Block a user