From a26a4f83dbe00113ad371850f918bfd70044b4e2 Mon Sep 17 00:00:00 2001 From: Shaun Hogan Date: Thu, 25 Jul 2024 08:39:38 +0000 Subject: [PATCH] Merged PR 56475: Fix incorrect publisher topic for subscriptions on contact reset ## What's being changed We have corrected a publisher topic for contact subscriptions. ## Why it's being changed When the cron for order clean-up runs, the `resetContact` was publishing a subscription message to an invalid queue. ## How to review / test this change - Ensure you have DB consumers configured. - Trigger the `sales_order_save_after` event. - Observe no error in the message queue report. Related work items: #263931 --- Observer/Sales/OrderSaveAfter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Observer/Sales/OrderSaveAfter.php b/Observer/Sales/OrderSaveAfter.php index 4f71df4b..e50293aa 100755 --- a/Observer/Sales/OrderSaveAfter.php +++ b/Observer/Sales/OrderSaveAfter.php @@ -281,7 +281,7 @@ private function resetContact($contact) $subscriptionData->setId($contact->getId()); $subscriptionData->setEmail($contact->getEmail()); $subscriptionData->setWebsiteId($contact->getWebsiteId()); - $this->publisher->publish('ddg.newsletter.subscribe', $subscriptionData); + $this->publisher->publish('ddg.newsletter.subscription', $subscriptionData); } }