rector: arrrrr

This commit is contained in:
Andras Bacsai
2025-01-07 14:52:08 +01:00
parent c702ebff6d
commit 16c0cd10d8
349 changed files with 4204 additions and 3712 deletions

View File

@@ -5,6 +5,7 @@ namespace App\Livewire;
use App\Actions\Server\UpdateCoolify;
use App\Models\InstanceSettings;
use Livewire\Component;
use Throwable;
class Upgrade extends Component
{
@@ -26,21 +27,25 @@ class Upgrade extends Component
if (isDev()) {
$this->isUpgradeAvailable = true;
}
} catch (\Throwable $e) {
} catch (Throwable $e) {
return handleError($e, $this);
}
return null;
}
public function upgrade()
{
try {
if ($this->updateInProgress) {
return;
return null;
}
$this->updateInProgress = true;
UpdateCoolify::run(manual_update: true);
} catch (\Throwable $e) {
} catch (Throwable $e) {
return handleError($e, $this);
}
return null;
}
}