diff --git a/app/Jobs/EncodeTrackFile.php b/app/Jobs/EncodeTrackFile.php index 9f535517..2b135556 100644 --- a/app/Jobs/EncodeTrackFile.php +++ b/app/Jobs/EncodeTrackFile.php @@ -75,7 +75,6 @@ class EncodeTrackFile extends Job implements SelfHandling, ShouldQueue ->getFile(); // Assign the target - $destination = $this->trackFile->track->getDirectory(); $this->trackFile->track->ensureDirectoryExists(); $target = $this->trackFile->getFile(); diff --git a/app/TrackFile.php b/app/TrackFile.php index e1cf52bf..d7a35855 100644 --- a/app/TrackFile.php +++ b/app/TrackFile.php @@ -31,7 +31,7 @@ class TrackFile extends Model { public function track() { - return $this->belongsTo('Poniverse\Ponyfm\Track'); + return $this->belongsTo('Poniverse\Ponyfm\Track')->withTrashed(); } /**