From d44feb24c0e4ed25b80ff7e05a32db60d613d2a2 Mon Sep 17 00:00:00 2001 From: Dmitrii Fediuk Date: Thu, 2 May 2024 21:08:29 +0100 Subject: [PATCH] https://github.com/thehcginstitute-com/m1/issues/590 --- .../community/Ebizmarts/MailChimp/Model/ProcessWebhook.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/community/Ebizmarts/MailChimp/Model/ProcessWebhook.php b/app/code/community/Ebizmarts/MailChimp/Model/ProcessWebhook.php index e19a37304..1203140bc 100644 --- a/app/code/community/Ebizmarts/MailChimp/Model/ProcessWebhook.php +++ b/app/code/community/Ebizmarts/MailChimp/Model/ProcessWebhook.php @@ -2,6 +2,7 @@ # 2024-05-02 Dmitrii Fediuk https://upwork.com/fl/mage2pro # "Refactor `Ebizmarts_MailChimp_Model_ProcessWebhook`": # https://github.com/cabinetsbay/site/issues/590 +use Ebizmarts_MailChimp_Model_Api_Subscribers_InterestGroupHandle as InterestGroupHandle; use Ebizmarts_MailChimp_Model_Api_Subscribers_MailchimpTags as Tags; final class Ebizmarts_MailChimp_Model_ProcessWebhook { /** @@ -11,7 +12,7 @@ final class Ebizmarts_MailChimp_Model_ProcessWebhook { */ function __construct() { $this->_tags = new Tags; - $this->_interestGroupHandle = Mage::getModel('mailchimp/api_subscribers_InterestGroupHandle'); + $this->_interestGroupHandle = new InterestGroupHandle; } /**