Update CollectionController, fixes #3946

This commit is contained in:
Daniel Supernault 2023-02-16 22:51:48 -07:00
parent dda9e77024
commit abd52f4d3a
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -135,7 +135,6 @@ class CollectionController extends Controller
$collection = Collection::whereProfileId($profileId)->findOrFail($collectionId); $collection = Collection::whereProfileId($profileId)->findOrFail($collectionId);
$count = $collection->items()->count(); $count = $collection->items()->count();
CollectionService::deleteCollection($collection->id);
if($count) { if($count) {
CollectionItem::whereCollectionId($collection->id) CollectionItem::whereCollectionId($collection->id)