mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for no account in version check
This commit is contained in:
parent
e6e8b21c5e
commit
130f0e5749
@ -46,6 +46,9 @@ class VersionCheck implements ShouldQueue
|
||||
{
|
||||
$account = Account::first();
|
||||
|
||||
if(!$account)
|
||||
return;
|
||||
|
||||
if($account->plan == 'white_label' && $account->plan_expires->lt(now())){
|
||||
$account->plan = null;
|
||||
$account->plan_expires = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user