fix: autoupdater

This commit is contained in:
Andras Bacsai committed 2024-03-27 11:35:57 +01:00
1 parent 3d3d31ef29
commit 43fed96af1
4 files changed
+28 -12

No files matched your search

+2 -2
View File
@@ -37,8 +37,8 @@ class Upgrade extends Component
return;
}
$this->showProgress = true;
UpdateCoolify::run(true);
$this->dispatch('success', "Upgrading to {$this->latestVersion} version...");
UpdateCoolify::run(force: true, async: true);
$this->dispatch('success', "Updating Coolify to {$this->latestVersion} version...");
} catch (\Throwable $e) {
return handleError($e, $this);
}