mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #5962 from turbo124/v5-develop
Better logging for company importer
This commit is contained in:
commit
fc4d713412
@ -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);
|
||||
|
||||
|
@ -154,6 +154,7 @@ class CompanyImport implements ShouldQueue
|
||||
$this->account = $this->company->account;
|
||||
|
||||
nlog("Company ID = {$this->company->id}");
|
||||
nlog("Hash ID = {$this->hash}");
|
||||
|
||||
$this->backup_file = Cache::get($this->hash);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user