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

This commit is contained in:
mbliznikova 2023-11-30 00:19:04 +00:00
parent 1ef885c1a1
commit a7320535e9

View file

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