mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Return early in some hosted jobs
This commit is contained in:
parent
9e91d7579d
commit
ce5dfa2717
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user