Minor fixes

This commit is contained in:
David Bomba 2021-06-28 21:30:04 +10:00
parent 707a77932f
commit 11f13cba0d

View File

@ -66,9 +66,9 @@ class ImportJsonController extends BaseController
$file_location = $this->unzipFile($import_file->getPathname());
if(Ninja::isHosted())
CompanyImport::dispatch(auth()->user()->getCompany(), auth()->user(), $file_location, $request->except('files'))->onQueue('himem');
else
// if(Ninja::isHosted())
// CompanyImport::dispatch(auth()->user()->getCompany(), auth()->user(), $file_location, $request->except('files'))->onQueue('himem');
// else
CompanyImport::dispatch(auth()->user()->getCompany(), auth()->user(), $file_location, $request->except('files'));
return response()->json(['message' => 'Processing'], 200);