From aeb9f058e8f63ae4f81403fadc0fa6bdfff6a06c Mon Sep 17 00:00:00 2001
From: Jean-Philippe Metivier <jean-philippe.metivier@unicaen.fr>
Date: Fri, 11 Apr 2025 11:14:00 +0200
Subject: [PATCH] Fixing

---
 .gitlab-ci.yml                                        | 11 +++--------
 .../Synchronisation/SynchronisationService.php        |  2 +-
 2 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0e61a8f..fe33a79 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,14 +1,9 @@
-image: registre.unicaen.fr:5000/unicaen-dev-php7.3-apache
-
 stages:
-- publish
-
-cache:
-  key: ${CI_COMMIT_REF_SLUG}
-  paths:
-  - vendor/
+  - publish
 
 update-satis:
   stage: publish
+  image: python:3.9
   script:
+    - apt-get update && apt-get -y upgrade && apt-get -y install curl
     - curl https://gest.unicaen.fr/packagist/update
diff --git a/src/UnicaenSynchro/Service/Synchronisation/SynchronisationService.php b/src/UnicaenSynchro/Service/Synchronisation/SynchronisationService.php
index 55630c7..f006e9c 100644
--- a/src/UnicaenSynchro/Service/Synchronisation/SynchronisationService.php
+++ b/src/UnicaenSynchro/Service/Synchronisation/SynchronisationService.php
@@ -168,7 +168,7 @@ class SynchronisationService
             if ($item['deleted_on'] === null && !isset($data_source[$id])) {
                 $nbRetrait++;
                 //                $texte_retrait .= "Retrait de ".$id." des données destination.\n";
-                $this->getSqlHelperService()->delete($orm_destination, $table_destination, $primarykey_id, $id);
+                $this->getSqlHelperService()->delete($orm_destination, $table_destination, $correspondance[$primarykey_id], $id);
             }
         }
 
-- 
GitLab