Skip to content

Commit

Permalink
Merge pull request #1423 from algolia/develop
Browse files Browse the repository at this point in the history
MAGE-765 Manual QA failed on new category
  • Loading branch information
mohitalgolia authored Oct 10, 2023
2 parents cdf44d9 + b3b50e3 commit 80ab7c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Model/Indexer/CategoryObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public function afterSave(
CategoryResourceModel $result,
CategoryModel $category
) {
if (!$this->configHelper->getApplicationID()
|| !$this->configHelper->getAPIKey()
|| !$this->configHelper->getSearchOnlyAPIKey()) {
return $result;
}
$categoryResource->addCommitCallback(function () use ($category) {
$collectionIds = [];
// To reduce the indexing operation for products, only update if these values have changed
Expand Down

0 comments on commit 80ab7c0

Please sign in to comment.