diff --git a/src/Jobs/DeleteProducts.php b/src/Jobs/DeleteProducts.php index e5b7123e50..bb441ff2cc 100644 --- a/src/Jobs/DeleteProducts.php +++ b/src/Jobs/DeleteProducts.php @@ -37,11 +37,6 @@ public function get_name(): string { * @throws ProductSyncerException If an error occurs. The exception will be logged by ActionScheduler. */ public function process_items( array $product_id_map ) { - $ready_ids = $this->product_repository->find_delete_product_ids( $product_id_map ); - - // Exclude any ID's which are not ready to delete. - $product_id_map = array_intersect( $product_id_map, $ready_ids ); - $product_entries = BatchProductIDRequestEntry::create_from_id_map( new ProductIDMap( $product_id_map ) ); $this->product_syncer->delete_by_batch_requests( $product_entries ); }