chore: Update UpdateCoolifyJob to dispatch CheckForUpdatesJob synchronously

This commit is contained in:
Andras Bacsai
2024-08-07 11:58:53 +02:00
parent 5a82395bb7
commit 64146a46fc

View File

@@ -22,8 +22,8 @@ class UpdateCoolifyJob implements ShouldBeEncrypted, ShouldQueue
public function handle(): void
{
try {
$settings = InstanceSettings::get();
CheckForUpdatesJob::dispatchSync();
$settings = InstanceSettings::get();
if (! $settings->new_version_available) {
Log::info('No new version available. Skipping update.');