Update RunRepair.php

This commit is contained in:
Bozhidar 2024-09-10 15:45:48 +03:00
parent 890f824c06
commit b2c13ba836

View file

@ -37,13 +37,13 @@ class RunRepair extends Command
{ {
// Find broken domains // Find broken domains
$findBrokenDomains = Domain::where('status', Domain::STATUS_BROKEN)->get(); // $findBrokenDomains = Domain::where('status', Domain::STATUS_BROKEN)->get();
if ($findBrokenDomains) { // if ($findBrokenDomains) {
foreach ($findBrokenDomains as $brokenDomain) { // foreach ($findBrokenDomains as $brokenDomain) {
$brokenDomain->status = Domain::STATUS_ACTIVE; // $brokenDomain->status = Domain::STATUS_ACTIVE;
$brokenDomain->saveQuietly(); // $brokenDomain->saveQuietly();
} // }
} // }
// Overwrite supervisor config file // Overwrite supervisor config file
$workersCount = (int) setting('general.supervisor_workers_count'); $workersCount = (int) setting('general.supervisor_workers_count');