From c880c787f3125151363db2ca90f3c628d605dd7b Mon Sep 17 00:00:00 2001 From: Pau Iranzo Date: Fri, 28 Jan 2022 11:11:15 +0100 Subject: [PATCH] Commit to show differences --- .../Model/ResourceModel/CustomerLink.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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) { + } } /**