mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
* Minor fixes for user delete * Working on notifications * Refactor for notifications * Fix for checking settings withe negative integers * Set payment id to 0 * Move pdf download to client side routes * fixes for company_user * Fixes for company_user
40 lines
787 B
PHP
40 lines
787 B
PHP
<?php
|
|
|
|
namespace App\Jobs\Util;
|
|
|
|
use App\Models\Account;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Support\Facades\Storage;
|
|
|
|
class VersionCheck implements ShouldQueue
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
public function __construct()
|
|
{
|
|
|
|
}
|
|
|
|
/**
|
|
* Execute the job.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function handle()
|
|
{
|
|
|
|
$version_file = file_get_contents(config('ninja.version_url'));
|
|
|
|
\Log::error($version_file);
|
|
|
|
if($version_file)
|
|
Account::whereNotNull('id')->update(['latest_version' => $version_file]);
|
|
|
|
}
|
|
|
|
}
|