mirror of
https://github.com/koel/koel
synced 2024-09-21 06:41:58 +00:00
Fix the bug where artists cannot be removed
This commit is contained in:
parent
ade825db02
commit
b66a7835ca
1 changed files with 1 additions and 1 deletions
|
@ -225,6 +225,6 @@ class Media
|
|||
$inUseArtists[] = Artist::UNKNOWN_ID;
|
||||
$inUseArtists[] = Artist::VARIOUS_ID;
|
||||
|
||||
Artist::whereNotIn('id', $inUseArtists)->delete();
|
||||
Artist::whereNotIn('id', array_filter($inUseArtists))->delete();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue