PLT-7288: Allow CLI to delete teams with no channels. (#7135)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
ff0811e4a4
Коммит
ab13de96a0
@@ -735,7 +735,9 @@ func PermanentDeleteTeam(team *model.Team) *model.AppError {
|
||||
}
|
||||
|
||||
if result := <-Srv.Store.Channel().GetTeamChannels(team.Id); result.Err != nil {
|
||||
return result.Err
|
||||
if result.Err.Id != "store.sql_channel.get_channels.not_found.app_error" {
|
||||
return result.Err
|
||||
}
|
||||
} else {
|
||||
channels := result.Data.(*model.ChannelList)
|
||||
for _, c := range *channels {
|
||||
|
||||
Ссылка в новой задаче
Block a user