diff --git a/app/code/community/Ebizmarts/MailChimp/Model/Cron.php b/app/code/community/Ebizmarts/MailChimp/Model/Cron.php
index dc19ee596..909949ecf 100644
--- a/app/code/community/Ebizmarts/MailChimp/Model/Cron.php
+++ b/app/code/community/Ebizmarts/MailChimp/Model/Cron.php
@@ -1,7 +1,6 @@
deleteProcessed();
- }
-
function clearEcommerceData()
{
Mage::getModel('mailchimp/clearEcommerce')->clearEcommerceData();
diff --git a/app/code/community/Ebizmarts/MailChimp/Model/ProcessWebhook.php b/app/code/community/Ebizmarts/MailChimp/Model/ProcessWebhook.php
index fb27a424b..5a443bf6f 100644
--- a/app/code/community/Ebizmarts/MailChimp/Model/ProcessWebhook.php
+++ b/app/code/community/Ebizmarts/MailChimp/Model/ProcessWebhook.php
@@ -17,6 +17,11 @@ function __construct() {
$this->_interestGroupHandle = Mage::getModel('mailchimp/api_subscribers_InterestGroupHandle');
}
+ /**
+ * 2024-05-02 Dmitrii Fediuk https://upwork.com/fl/mage2pro
+ * "Refactor `Ebizmarts_MailChimp_Model_ProcessWebhook`": https://github.com/cabinetsbay/site/issues/590
+ * @used-by Aoe_Scheduler_Model_Observer::dispatch() (app/code/community/Ebizmarts/MailChimp/etc/config.xml)
+ */
function deleteProcessed():void {
$helper = $this->getHelper();
$resource = $helper->getCoreResource();
diff --git a/app/code/community/Ebizmarts/MailChimp/etc/config.xml b/app/code/community/Ebizmarts/MailChimp/etc/config.xml
index 897c5c043..953550758 100644
--- a/app/code/community/Ebizmarts/MailChimp/etc/config.xml
+++ b/app/code/community/Ebizmarts/MailChimp/etc/config.xml
@@ -446,7 +446,7 @@ https://github.com/thehcginstitute-com/m1/issues/573 -->
0 0 * * *
- mailchimp/cron::deleteWebhookRequests
+ Ebizmarts_MailChimp_Model_ProcessWebhook::deleteProcessed
ebizmarts_mailchimp