From 0878a696726264fe3081f8094782837354d07283 Mon Sep 17 00:00:00 2001 From: smarcet Date: Mon, 21 Sep 2020 16:07:58 -0300 Subject: [PATCH] Fixed errors Change-Id: I29961ccd39bd3847e911bfb884e0d66953ed2f4d Signed-off-by: smarcet --- app/Jobs/PublishUserCreated.php | 7 ++++++- app/Jobs/PublishUserUpdated.php | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/Jobs/PublishUserCreated.php b/app/Jobs/PublishUserCreated.php index 8b02d124..145a04c2 100644 --- a/app/Jobs/PublishUserCreated.php +++ b/app/Jobs/PublishUserCreated.php @@ -42,6 +42,11 @@ class PublishUserCreated implements ShouldQueue { Log::debug(sprintf("PublishUserCreated::handle user created %s %s", $this->user_id, $this->user_email)); - $service->registerExternalUserById($this->user_id); + try { + $service->registerExternalUserById($this->user_id); + } + catch (\Exception $ex){ + Log::error($ex); + } } } diff --git a/app/Jobs/PublishUserUpdated.php b/app/Jobs/PublishUserUpdated.php index f519f54c..61e39b1a 100644 --- a/app/Jobs/PublishUserUpdated.php +++ b/app/Jobs/PublishUserUpdated.php @@ -42,6 +42,11 @@ class PublishUserUpdated implements ShouldQueue { Log::debug(sprintf("PublishUserUpdated::handle user updated %s %s", $this->user_id, $this->user_email)); - $service->registerExternalUserById($this->user_id); + try { + $service->registerExternalUserById($this->user_id); + } + catch (\Exception $ex){ + Log::error($ex); + } } }