Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Refactor upgrade method in Upgrade.php

Andras Bacsai82372ea25233
diff --git a/app/Livewire/Upgrade.php b/app/Livewire/Upgrade.php
index 37c2a64ef8..96ee763257 100644
--- a/app/Livewire/Upgrade.php
+++ b/app/Livewire/Upgrade.php
@@ -32,10 +32,10 @@ class Upgrade extends Component
public function upgrade()
{
try {
- $this->rateLimit(1, 30);
if ($this->showProgress) {
return;
}
+ $this->rateLimit(1, 30);
$this->showProgress = true;
UpdateCoolify::run(force: true, async: true);
$this->dispatch('success', "Updating Coolify to {$this->latestVersion} version...");