From 8ed32acce2c367826cfcb09d49cf0992353f6999 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 12 Dec 2022 13:46:11 +1100 Subject: [PATCH] Refactor for starting jobs with middleware --- app/Import/Providers/Csv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Import/Providers/Csv.php b/app/Import/Providers/Csv.php index 4da3dad96184..aee88900489b 100644 --- a/app/Import/Providers/Csv.php +++ b/app/Import/Providers/Csv.php @@ -110,7 +110,7 @@ class Csv extends BaseImport implements ImportInterface nlog("bank matching co id = {$this->company->id}"); - BankMatchingService::dispatchSync($this->company->id, $this->company->db); + (new BankMatchingService($this->company->id, $this->company->db))->handle(); }