Skip to content

Commit

Permalink
Update UpdateWhitelabelToWebsites.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Oct 8, 2024
1 parent 4d4820b commit cc513fa
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions web/Modules/Microweber/Jobs/UpdateWhitelabelToWebsites.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ public function handle(): void

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);
}

}

Expand Down

0 comments on commit cc513fa

Please sign in to comment.