From 68c2246e64b7dc3592aa13c5bf98361ac5cae148 Mon Sep 17 00:00:00 2001 From: Joshua Dwire Date: Tue, 16 Feb 2021 18:17:41 -0500 Subject: [PATCH] Remove dispatchNow used for testing --- app/Http/Controllers/ImportController.php | 2 +- app/Jobs/Import/CSVImport.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ImportController.php b/app/Http/Controllers/ImportController.php index 343099837e..01f7ce12a4 100644 --- a/app/Http/Controllers/ImportController.php +++ b/app/Http/Controllers/ImportController.php @@ -115,7 +115,7 @@ class ImportController extends Controller { } } - CSVImport::dispatchNow( $data, auth()->user()->company() ); + CSVImport::dispatch( $data, auth()->user()->company() ); return response()->json( [ 'message' => ctrans( 'texts.import_started' ) ], 200 ); } diff --git a/app/Jobs/Import/CSVImport.php b/app/Jobs/Import/CSVImport.php index d908665aa2..fb6fee2b9d 100644 --- a/app/Jobs/Import/CSVImport.php +++ b/app/Jobs/Import/CSVImport.php @@ -126,7 +126,7 @@ class CSVImport implements ShouldQueue { 'company' => $this->company, ]; - MailRouter::dispatchNow( new ImportCompleted( $data ), $this->company, auth()->user() ); + MailRouter::dispatch( new ImportCompleted( $data ), $this->company, auth()->user() ); } //////////////////////////////////////////////////////////////////////////////////////////////////////////////