From a1e1eeb41b43cc8142c3f2a21c26fda0a58d4943 Mon Sep 17 00:00:00 2001 From: gonzalo Date: Mon, 28 Aug 2023 09:50:47 -0300 Subject: [PATCH] Version 103.4.54 for magento 2.4 --- Helper/Sync.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Helper/Sync.php b/Helper/Sync.php index 6b554fc5..8ce70e9d 100644 --- a/Helper/Sync.php +++ b/Helper/Sync.php @@ -156,15 +156,6 @@ public function resetErrors($mailchimpStore, $storeId, $retry) $tableName, "mailchimp_store_id = '" . $mailchimpStore . "' and mailchimp_sync_error is not null" ); - // clean the order table - $orderCollection = $this->orderCollectionFactory->create(); - $orderCollection->addFieldToFilter('store_id', ['eq' => $storeId]); - $orderCollection->addFieldToFilter('mailchimp_sync_error', ['notnull' => true]); - foreach ($orderCollection as $item) { - $item->setMailchimpSent(\Ebizmarts\MailChimp\Helper\Data::NEVERSYNC); - $item->setMailchimpSyncError(''); - $item->save(); - } } } catch (\Zend_Db_Exception $e) { throw new ValidatorException(__($e->getMessage()));