Skip to content

Commit

Permalink
Merge pull request #1786 from mailchimp/Version54-2.3
Browse files Browse the repository at this point in the history
Version 102.3.54 for magento 2.3
  • Loading branch information
gonzaloebiz authored Aug 28, 2023
2 parents d77231b + 0df4406 commit 3117e80
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Helper/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,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()));
Expand Down

0 comments on commit 3117e80

Please sign in to comment.