Browse Source

#4791 Invalidate cache after adding a collection item for data consistency

mbliznikova 1 year ago
parent
commit
a7320535e9
1 changed files with 1 additions and 5 deletions
  1. 1 5
      app/Http/Controllers/CollectionController.php

+ 1 - 5
app/Http/Controllers/CollectionController.php

@@ -166,11 +166,7 @@ class CollectionController extends Controller
             'order'         => $count,
         ]);
 
-        CollectionService::addItem(
-        	$collection->id,
-        	$status->id,
-        	$count
-        );
+        CollectionService::deleteCollection($collection->id);
 
         $collection->updated_at = now();
         $collection->save();