Skip to content

Commit

Permalink
CUS-1
Browse files Browse the repository at this point in the history
- initial commit
  • Loading branch information
alexsolonenko committed Jul 22, 2024
1 parent c7325ef commit 92b0eb9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Observer/AfterAddressSaveUpdateUpdatedAt.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ public function execute(Observer $observer): void
$customer->setUpdatedAt(null);
$this->updated = true;

// Using save because repo/resource model triggers this same event and thus infinite loop
// See how Magento does it here: vendor/magento/module-customer/Observer/AfterAddressSaveObserver.php
$this->customerRepository->save($customer->getDataModel());
}
} catch (\Exception $e) {
Expand Down

0 comments on commit 92b0eb9

Please sign in to comment.