From 7bde5690f4a33c144daf0eb7c09622526a10111e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 5 Dec 2022 21:27:42 +1100 Subject: [PATCH] refactor bank matching service --- app/Services/Bank/BankMatchingService.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Services/Bank/BankMatchingService.php b/app/Services/Bank/BankMatchingService.php index 336c29ce9112..8afb84ff6737 100644 --- a/app/Services/Bank/BankMatchingService.php +++ b/app/Services/Bank/BankMatchingService.php @@ -33,7 +33,12 @@ class BankMatchingService implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; - public function __construct(protected int $company_id, protected string $db){ + protected $company_id; + + protected $db; + + public function __construct($company_id, $db) + { $this->company_id = $company_id; $this->db = $db; $this->middleware_key = "bank_match_rate:{$this->company_id}";