Make it possible to rebuild deleted tracks, too.

This commit is contained in:
Peter Deltchev 2016-01-04 15:24:25 -08:00
parent 4394d0131b
commit eaa1cc39a9

View file

@ -63,7 +63,7 @@ class RebuildTrack extends Command
public function handle()
{
/** @var Track $track */
$track = Track::with('trackFiles')->find((int) $this->argument('trackId'));
$track = Track::with('trackFiles')->withTrashed()->find((int) $this->argument('trackId'));
if($this->option('upload')) {
foreach($track->trackFiles as $trackFile) {