From cc513faf36ee92b5c1c5f93acbc5e21f9d627b95 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Tue, 8 Oct 2024 16:06:11 +0300 Subject: [PATCH] Update UpdateWhitelabelToWebsites.php --- .../Microweber/Jobs/UpdateWhitelabelToWebsites.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web/Modules/Microweber/Jobs/UpdateWhitelabelToWebsites.php b/web/Modules/Microweber/Jobs/UpdateWhitelabelToWebsites.php index 948c142..0d51bf3 100644 --- a/web/Modules/Microweber/Jobs/UpdateWhitelabelToWebsites.php +++ b/web/Modules/Microweber/Jobs/UpdateWhitelabelToWebsites.php @@ -43,10 +43,14 @@ class UpdateWhitelabelToWebsites implements ShouldQueue foreach ($mwInstallations as $mwInstallation) { - $whitelabelApply = new MicroweberWhitelabelWebsiteApply(); - $whitelabelApply->setWebPath($mwInstallation->installation_path); - $whitelabelApply->setSharedPath($sharedAppPath); - $whitelabelApply->apply(); + try { + $whitelabelApply = new MicroweberWhitelabelWebsiteApply(); + $whitelabelApply->setWebPath($mwInstallation->installation_path); + $whitelabelApply->setSharedPath($sharedAppPath); + $whitelabelApply->apply(); + } catch (\Exception $e) { + // \Log::error('Error applying whitelabel to website: ' . $mwInstallation->installation_path); + } }