fix: downloading song yields error

closes #1356
This commit is contained in:
Phan An 2022-01-18 00:20:57 +01:00
parent f7270c4b84
commit b222ba3ac0
No known key found for this signature in database
GPG key ID: A81E4477F0BB6FDC

View file

@ -7,6 +7,7 @@ use App\Models\Artist;
use App\Models\Playlist;
use App\Models\Song;
use App\Models\SongZipArchive;
use Illuminate\Database\Eloquent\Collection as EloquentCollection;
use Illuminate\Support\Collection;
use InvalidArgumentException;
@ -35,6 +36,7 @@ class DownloadService
return $this->fromSong($mixed);
case Collection::class:
case EloquentCollection::class:
return $this->fromMultipleSongs($mixed);
case Album::class: