Skip to content

Commit

Permalink
https://github.com/thehcginstitute-com/m1/issues/590
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed May 2, 2024
1 parent e91d762 commit 9d81325
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/code/community/Ebizmarts/MailChimp/Model/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ function processWebhookData() {
$p->processWebhookData();
}

function deleteWebhookRequests()
{
Mage::getModel('mailchimp/processWebhook')->deleteProcessed();
function deleteWebhookRequests() {
$p = new Process; /** @var Process $p */
$p->deleteProcessed();
}

function clearEcommerceData()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ final class Ebizmarts_MailChimp_Model_ProcessWebhook {
/**
* 2024-05-02 Dmitrii Fediuk https://upwork.com/fl/mage2pro
* "Refactor `Ebizmarts_MailChimp_Model_ProcessWebhook`": https://github.com/cabinetsbay/site/issues/590
* @used-by Ebizmarts_MailChimp_WebhookController::indexAction()
* @used-by Ebizmarts_MailChimp_Model_Cron::deleteWebhookRequests()
* @used-by Ebizmarts_MailChimp_Model_Cron::processWebhookData()
* @used-by Ebizmarts_MailChimp_WebhookController::indexAction()
*/
function __construct() {
$this->_helper = hcg_mc_h();
Expand Down

0 comments on commit 9d81325

Please sign in to comment.