diff --git a/public/modules/custom/asu_content/asu_content.module b/public/modules/custom/asu_content/asu_content.module index d8b74460..2f39d9e3 100644 --- a/public/modules/custom/asu_content/asu_content.module +++ b/public/modules/custom/asu_content/asu_content.module @@ -381,14 +381,6 @@ function clearCache($project) { }; $apartments_index = array_map($apartments_index, $apartments_ids); - // Load apartment entities. - $apartments = \Drupal::entityTypeManager()->getStorage('node')->loadMultiple($apartments_ids); - - // Update apartments so data will updated to elastic search. - foreach ($apartments as $apartment) { - $apartment->save(); - } - // Trigger search api index update. foreach ($indexes as $index) { $index->trackItemsUpdated('entity:node', $apartments_index);