From ce5dfa27176ca03ec77bc06491d275c4dff5c64a Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 3 Nov 2022 13:33:26 +1100 Subject: [PATCH] Return early in some hosted jobs --- app/Jobs/Util/SchedulerCheck.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Jobs/Util/SchedulerCheck.php b/app/Jobs/Util/SchedulerCheck.php index fa918b900248..d7df9005980d 100644 --- a/app/Jobs/Util/SchedulerCheck.php +++ b/app/Jobs/Util/SchedulerCheck.php @@ -12,6 +12,7 @@ namespace App\Jobs\Util; use App\Models\Account; +use App\Utils\Ninja; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; @@ -38,6 +39,10 @@ class SchedulerCheck implements ShouldQueue { set_time_limit(0); + + if(Ninja::isHosted()) + return; + if (config('ninja.app_version') != base_path('VERSION.txt')) { try { Artisan::call('migrate', ['--force' => true]);