diff --git a/VERSION.txt b/VERSION.txt index e17a8ff63c53..e92da973fed6 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.5.59 \ No newline at end of file +5.5.60 \ No newline at end of file diff --git a/app/Observers/ClientContactObserver.php b/app/Observers/ClientContactObserver.php index 54c49fff1de8..49881f0537ab 100644 --- a/app/Observers/ClientContactObserver.php +++ b/app/Observers/ClientContactObserver.php @@ -67,7 +67,7 @@ class ClientContactObserver QuoteInvitation::withTrashed()->where('client_contact_id', $client_contact_id)->cursor()->each(function ($invite){ - if($invite->invoice()->doesnthave('invitations')) + if($invite->quote()->doesnthave('invitations')) $invite->quote->service()->createInvitations(); }); @@ -75,7 +75,7 @@ class ClientContactObserver RecurringInvoiceInvitation::withTrashed()->where('client_contact_id', $client_contact_id)->cursor()->each(function ($invite){ if($invite->recurring_invoice()->doesnthave('invitations')) - $invite->quote->service()->createInvitations(); + $invite->recurring_invoice->service()->createInvitations(); }); diff --git a/config/ninja.php b/config/ninja.php index cd0e594e5c59..ea66940ea2d4 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -14,8 +14,8 @@ return [ 'require_https' => env('REQUIRE_HTTPS', true), 'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'), - 'app_version' => '5.5.59', - 'app_tag' => '5.5.59', + 'app_version' => '5.5.60', + 'app_tag' => '5.5.60', 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', ''),