Merge pull request #5948 from turbo124/v5-develop

Fixes for Import
This commit is contained in:
David Bomba 2021-06-08 08:34:12 +10:00 committed by GitHub
commit 7caf9965e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,8 @@ class ImportJsonController extends BaseController
$hash = Str::random(32); $hash = Str::random(32);
nlog($hash);
Cache::put( $hash, base64_encode( $contents ), 3600 ); 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'));