Merge pull request #5962 from turbo124/v5-develop

Better logging for company importer
This commit is contained in:
David Bomba 2021-06-08 18:59:01 +10:00 committed by GitHub
commit fc4d713412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

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

View File

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