migrating perm delete by channel to sync (#10993)

Этот коммит содержится в:
Evan do Carmo
2019-05-29 08:55:03 -04:00
коммит произвёл Jesús Espino
родитель ca15690685
Коммит 42ac975c0e
5 изменённых файлов: 14 добавлений и 15 удалений

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

@@ -1933,8 +1933,8 @@ func (a *App) PermanentDeleteChannel(channel *model.Channel) *model.AppError {
return channelUsers.Err
}
if result := <-a.Srv.Store.Post().PermanentDeleteByChannel(channel.Id); result.Err != nil {
return result.Err
if err := a.Srv.Store.Post().PermanentDeleteByChannel(channel.Id); err != nil {
return err
}
if result := <-a.Srv.Store.Channel().PermanentDeleteMembersByChannel(channel.Id); result.Err != nil {