From 279758dc82cc4993e90d948b86234b0f1339ba2f Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Mon, 15 Aug 2022 19:56:31 +0000
Subject: [PATCH] Add possibility to synchronize deleted entries

---
 src/UcrmHelper.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/UcrmHelper.php b/src/UcrmHelper.php
index ced5aac..9d709f1 100644
--- a/src/UcrmHelper.php
+++ b/src/UcrmHelper.php
@@ -78,13 +78,13 @@
 					throw new \RuntimeException('Failed to process event - invalid entity ID');
 				}
 
-				$this->event = $data;
-			} catch (\Exception $e) {
+				$this->event = $event;
+			} catch (\Throwable $e) {
 				$this->event = $e;
 			}
 		}
 
-		if ($this->event instanceof \Exception) {
+		if ($this->event instanceof \Throwable) {
 			throw $this->event;
 		}
 

--
Gitblit v1.10.0