Fixes for no account in version check

This commit is contained in:
David Bomba 2021-05-01 10:48:36 +10:00
parent e6e8b21c5e
commit 130f0e5749

View File

@ -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;