mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-29 16:17:59 +01:00
#4: Removed a line of dead code and fixed the rebuild process for deleted tracks.
This commit is contained in:
parent
c7bca18b5e
commit
9cff18f5fc
2 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue