Skip to content

Commit

Permalink
Merge pull request #1788 from mailchimp/Version54-2.1
Browse files Browse the repository at this point in the history
Version54 2.1
  • Loading branch information
gonzaloebiz authored Aug 28, 2023
2 parents c5652ff + 538018d commit fe72bce
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 fe72bce

Please sign in to comment.