1
0
Fork 0
forked from mirror/pixelfed

#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,
]);
CollectionService::addItem(
$collection->id,
$status->id,
$count
);
CollectionService::deleteCollection($collection->id);
$collection->updated_at = now();
$collection->save();