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 1feceb8 commit e91d762
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/code/community/Ebizmarts/MailChimp/Model/Cron.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
# 2024-04-14 Dmitrii Fediuk https://upwork.com/fl/mage2pro
# "Refactor the `Ebizmarts_MailChimp` module": https://github.com/thehcginstitute-com/m1/issues/524
use Ebizmarts_MailChimp_Model_ProcessWebhook as Process;
class Ebizmarts_MailChimp_Model_Cron
{
/**
Expand All @@ -21,9 +22,9 @@ function syncEcommerceBatchData() {\HCG\MailChimp\Batch\Commerce::p();}
*/
function syncSubscriberBatchData():void {\HCG\MailChimp\Batch\Subscriber::p();}

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

function deleteWebhookRequests()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ 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::processWebhookData()
*/
function __construct() {
$this->_helper = hcg_mc_h();
Expand Down

0 comments on commit e91d762

Please sign in to comment.