Implement slight delay on Company Import
This commit is contained in:
parent
12a31b79e7
commit
c2e2ab60cb
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class ImportJsonController extends BaseController
|
|||
|
||||
Cache::put( $hash, base64_encode( $contents ), 3600 );
|
||||
|
||||
CompanyImport::dispatch(auth()->user()->getCompany(), auth()->user(), $hash, $request->except('files'));
|
||||
CompanyImport::dispatch(auth()->user()->getCompany(), auth()->user(), $hash, $request->except('files'))->delay(now()->addMinutes(2));
|
||||
|
||||
return response()->json(['message' => 'Processing'], 200);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue