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