diff --git a/src/module-elasticsuite-tracker/Model/ResourceModel/CustomerLink.php b/src/module-elasticsuite-tracker/Model/ResourceModel/CustomerLink.php index f0cd38355..fad07fc59 100644 --- a/src/module-elasticsuite-tracker/Model/ResourceModel/CustomerLink.php +++ b/src/module-elasticsuite-tracker/Model/ResourceModel/CustomerLink.php @@ -36,11 +36,14 @@ public function saveLink($linkData) $linkData['delete_after'] = $this->formatDate($linkData['delete_after']); } - $connection->insertOnDuplicate( - $this->getMainTable(), - $linkData, - array_keys($linkData) - ); + try { + $connection->insertOnDuplicate( + $this->getMainTable(), + $linkData, + array_keys($linkData) + ); + } catch (\Exception $e) { + } } /**