Jacek Kowalski
2022-08-15 286d38fc4ab966b71f741065e9a5948544a26df2
public.php
@@ -26,10 +26,18 @@
      die();
   }
   if ($synchronizer->synchronize($event['entityId'])) {
      echo 'Object synchronized';
   if ($event['changeType'] === 'delete') {
      if($synchronizer->delete($event['extraData']['entity'])) {
         echo 'Object deleted';
      } else {
         echo 'Nothing to do';
      }
   } else {
      echo 'Nothing to do';
      if ($synchronizer->synchronize($event['entityId'])) {
         echo 'Object synchronized';
      } else {
         echo 'Nothing to do';
      }
   }
} catch (Exception $e) {
   header('HTTP/1.1 500 Internal Server Error');