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
$findBrokenDomains = Domain::where('status', Domain::STATUS_BROKEN)->get();
if ($findBrokenDomains) {
foreach ($findBrokenDomains as $brokenDomain) {
$brokenDomain->status = Domain::STATUS_ACTIVE;
$brokenDomain->saveQuietly();
}
}
// $findBrokenDomains = Domain::where('status', Domain::STATUS_BROKEN)->get();
// if ($findBrokenDomains) {
// foreach ($findBrokenDomains as $brokenDomain) {
// $brokenDomain->status = Domain::STATUS_ACTIVE;
// $brokenDomain->saveQuietly();
// }
// }
// Overwrite supervisor config file
$workersCount = (int) setting('general.supervisor_workers_count');