From d09025367f4bd1dbe1bc4cbb444e2f6375f1e53f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 22 Nov 2021 07:20:53 +1100 Subject: [PATCH] Minor fixes --- app/PaymentDrivers/MolliePaymentDriver.php | 2 +- app/Services/Subscription/SubscriptionService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/PaymentDrivers/MolliePaymentDriver.php b/app/PaymentDrivers/MolliePaymentDriver.php index 7215a65df07e..e05fe4972924 100644 --- a/app/PaymentDrivers/MolliePaymentDriver.php +++ b/app/PaymentDrivers/MolliePaymentDriver.php @@ -312,7 +312,7 @@ class MolliePaymentDriver extends BaseDriver $client = $record->client; } else{ - $client = Client::withTrashed()->find($this->decodePrimaryKey($payment['metadata']->client_id)); + $client = Client::withTrashed()->find($this->decodePrimaryKey($payment->metadata->client_id)); } $message = [ diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index a1984fb7a2a0..56a09555d900 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -718,7 +718,7 @@ class SubscriptionService public function convertInvoiceToRecurring($client_id) :RecurringInvoice { - $client = Client::find($client_id); + $client = Client::withTrashed()->find($client_id); $subscription_repo = new SubscriptionRepository();