mirror of
https://github.com/koel/koel
synced 2024-11-10 22:54:16 +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::UNKNOWN_ID;
|
||||||
$inUseArtists[] = Artist::VARIOUS_ID;
|
$inUseArtists[] = Artist::VARIOUS_ID;
|
||||||
|
|
||||||
Artist::whereNotIn('id', $inUseArtists)->delete();
|
Artist::whereNotIn('id', array_filter($inUseArtists))->delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue