From 46c0ba1c7da7efea564719de02ed3b57c2c51274 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 22 Nov 2021 12:53:40 +1100 Subject: [PATCH] Set DB in subscription service --- app/Services/Subscription/SubscriptionService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index 56a09555d900..ba7da5f28670 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -717,7 +717,8 @@ class SubscriptionService */ public function convertInvoiceToRecurring($client_id) :RecurringInvoice { - + MultiDB::setDb($this->subscription->company->db); + $client = Client::withTrashed()->find($client_id); $subscription_repo = new SubscriptionRepository();