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 7e8bc11 commit 1feceb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# https://github.com/cabinetsbay/site/issues/590
use Ebizmarts_MailChimp_Model_Api_Subscribers_MailchimpTags as Tags;
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()
*/
function __construct() {
$this->_helper = hcg_mc_h();
$this->_dateHelper = Mage::helper('mailchimp/date');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ function indexAction()
//Validate "wkey" GET parameter
if ($myKey == $requestKey) {
if ($request->getPost('type')) {
Mage::getModel('mailchimp/processWebhook')->saveWebhookRequest($data);
$p = new Process; /** @var Process $p */
$p->saveWebhookRequest($data);
}
# 2024-03-16 Dmitrii Fediuk https://upwork.com/fl/mage2pro
# "«Webhook successfully created» should not be logged as an error my MailChimp":
Expand Down

0 comments on commit 1feceb8

Please sign in to comment.