1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

refactor bank matching service

This commit is contained in:
David Bomba 2022-12-05 21:27:42 +11:00
parent 0c17e6014f
commit 7bde5690f4

View File

@ -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}";