#4: Removed a line of dead code and fixed the rebuild process for deleted tracks.

This commit is contained in:
Peter Deltchev 2015-11-02 20:48:15 -08:00
parent c7bca18b5e
commit 9cff18f5fc
2 changed files with 1 additions and 2 deletions

View file

@ -75,7 +75,6 @@ class EncodeTrackFile extends Job implements SelfHandling, ShouldQueue
->getFile(); ->getFile();
// Assign the target // Assign the target
$destination = $this->trackFile->track->getDirectory();
$this->trackFile->track->ensureDirectoryExists(); $this->trackFile->track->ensureDirectoryExists();
$target = $this->trackFile->getFile(); $target = $this->trackFile->getFile();

View file

@ -31,7 +31,7 @@ class TrackFile extends Model
{ {
public function track() public function track()
{ {
return $this->belongsTo('Poniverse\Ponyfm\Track'); return $this->belongsTo('Poniverse\Ponyfm\Track')->withTrashed();
} }
/** /**