Skip to content

Commit

Permalink
Merge pull request #448 from City-of-Helsinki/ASU-X-Apartment_update
Browse files Browse the repository at this point in the history
ASU: remove apartment update on project update hook
  • Loading branch information
tvalimaa authored Sep 5, 2023
2 parents 73154bf + d3bac57 commit f0d23dc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions public/modules/custom/asu_content/asu_content.module
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f0d23dc

Please sign in to comment.