Minor fixes

This commit is contained in:
David Bomba 2021-11-22 07:20:53 +11:00
parent 540e382bd1
commit d09025367f
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ class MolliePaymentDriver extends BaseDriver
$client = $record->client; $client = $record->client;
} }
else{ else{
$client = Client::withTrashed()->find($this->decodePrimaryKey($payment['metadata']->client_id)); $client = Client::withTrashed()->find($this->decodePrimaryKey($payment->metadata->client_id));
} }
$message = [ $message = [

View File

@ -718,7 +718,7 @@ class SubscriptionService
public function convertInvoiceToRecurring($client_id) :RecurringInvoice public function convertInvoiceToRecurring($client_id) :RecurringInvoice
{ {
$client = Client::find($client_id); $client = Client::withTrashed()->find($client_id);
$subscription_repo = new SubscriptionRepository(); $subscription_repo = new SubscriptionRepository();