Update UpdateWhitelabelToWebsites.php

This commit is contained in:
Bozhidar 2024-10-08 16:06:11 +03:00
parent 4d4820b56a
commit cc513faf36

View file

@ -43,10 +43,14 @@ class UpdateWhitelabelToWebsites implements ShouldQueue
foreach ($mwInstallations as $mwInstallation) { foreach ($mwInstallations as $mwInstallation) {
try {
$whitelabelApply = new MicroweberWhitelabelWebsiteApply(); $whitelabelApply = new MicroweberWhitelabelWebsiteApply();
$whitelabelApply->setWebPath($mwInstallation->installation_path); $whitelabelApply->setWebPath($mwInstallation->installation_path);
$whitelabelApply->setSharedPath($sharedAppPath); $whitelabelApply->setSharedPath($sharedAppPath);
$whitelabelApply->apply(); $whitelabelApply->apply();
} catch (\Exception $e) {
// \Log::error('Error applying whitelabel to website: ' . $mwInstallation->installation_path);
}
} }