Jacek Kowalski
2022-08-15 279758dc82cc4993e90d948b86234b0f1339ba2f
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');