1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Remove dispatchNow used for testing

This commit is contained in:
Joshua Dwire 2021-02-16 18:17:41 -05:00
parent ff27f351c7
commit 68c2246e64
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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() );
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////