lasthourcloud/app/Http/Livewire/ForceUpgrade.php
Andras Bacsai ac424ce529 fix
2023-05-25 23:04:05 +02:00

20 lines
398 B
PHP

<?php
namespace App\Http\Livewire;
use App\Jobs\InstanceAutoUpdateJob;
use Livewire\Component;
class ForceUpgrade extends Component
{
public function upgrade()
{
try {
$this->emit('updateInitiated');
dispatch(new InstanceAutoUpdateJob(force: true));
} catch (\Exception $e) {
return general_error_handler($e, $this);
}
}
}