We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c57fb commit 1ee39cdCopy full SHA for 1ee39cd
Setup/Patch/Data/RebuildReplicasPatch.php
@@ -48,8 +48,11 @@ public function apply(): PatchInterface
48
$this->state->setAreaCode(\Magento\Framework\App\Area::AREA_ADMINHTML);
49
50
$storeIds = array_keys($this->storeManager->getStores());
51
+ // Delete all replicas before resyncing in case of incorrect replica assignments
52
foreach ($storeIds as $storeId) {
53
$this->replicaManager->deleteReplicasFromAlgolia($storeId);
54
+ }
55
+ foreach ($storeIds as $storeId) {
56
$this->replicaManager->syncReplicasToAlgolia($storeId, $this->productHelper->getIndexSettings($storeId));
57
}
58
0 commit comments