chore: Update UpdateCoolifyJob to dispatch CheckForUpdatesJob synchronously
This commit is contained in:
parent
5a82395bb7
commit
64146a46fc
1 changed files with 1 additions and 1 deletions
|
|
@ -22,8 +22,8 @@ class UpdateCoolifyJob implements ShouldBeEncrypted, ShouldQueue
|
||||||
public function handle(): void
|
public function handle(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$settings = InstanceSettings::get();
|
|
||||||
CheckForUpdatesJob::dispatchSync();
|
CheckForUpdatesJob::dispatchSync();
|
||||||
|
$settings = InstanceSettings::get();
|
||||||
if (! $settings->new_version_available) {
|
if (! $settings->new_version_available) {
|
||||||
Log::info('No new version available. Skipping update.');
|
Log::info('No new version available. Skipping update.');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue