mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-01-31 03:16:42 +01:00
Make it possible to rebuild deleted tracks, too.
This commit is contained in:
parent
4394d0131b
commit
eaa1cc39a9
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue