diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0e61a8f9c152c209311f0ae33e8b5f438e5327a2..fe33a792456a6955c907fefd3f90dd64502f6dae 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 55630c7092af331b7d2e303f9ab9a393f7ef67e1..f006e9c4f01c417125f36bd951db03a9dc1ee4d5 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);
             }
         }