fixes
This commit is contained in:
		@@ -54,7 +54,7 @@ class UpdateCoolify
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        if (isDev()) {
 | 
					        if (isDev()) {
 | 
				
			||||||
            instant_remote_process([
 | 
					            instant_remote_process([
 | 
				
			||||||
                "sleep 10"
 | 
					                "sleep 1"
 | 
				
			||||||
            ], $this->server);
 | 
					            ], $this->server);
 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,11 +5,9 @@ namespace App\Livewire;
 | 
				
			|||||||
use App\Actions\Server\UpdateCoolify;
 | 
					use App\Actions\Server\UpdateCoolify;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Livewire\Component;
 | 
					use Livewire\Component;
 | 
				
			||||||
use DanHarrin\LivewireRateLimiting\WithRateLimiting;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Upgrade extends Component
 | 
					class Upgrade extends Component
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    use WithRateLimiting;
 | 
					 | 
				
			||||||
    public bool $showProgress = false;
 | 
					    public bool $showProgress = false;
 | 
				
			||||||
    public bool $updateInProgress = false;
 | 
					    public bool $updateInProgress = false;
 | 
				
			||||||
    public bool $isUpgradeAvailable = false;
 | 
					    public bool $isUpgradeAvailable = false;
 | 
				
			||||||
@@ -31,7 +29,6 @@ class Upgrade extends Component
 | 
				
			|||||||
            if ($this->updateInProgress) {
 | 
					            if ($this->updateInProgress) {
 | 
				
			||||||
                return;
 | 
					                return;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            $this->rateLimit(1, 60);
 | 
					 | 
				
			||||||
            $this->updateInProgress = true;
 | 
					            $this->updateInProgress = true;
 | 
				
			||||||
            UpdateCoolify::run(manual_update: true);
 | 
					            UpdateCoolify::run(manual_update: true);
 | 
				
			||||||
        } catch (\Throwable $e) {
 | 
					        } catch (\Throwable $e) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user