mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Static Analysis Cleanup
This commit is contained in:
parent
3fd78e1074
commit
2377f4be2b
@ -172,6 +172,9 @@ class ImportController extends Controller
|
||||
|
||||
public function import(ImportRequest $request)
|
||||
{
|
||||
/** @var \App\Models\User $user */
|
||||
$user = auth()->user();
|
||||
|
||||
$data = $request->all();
|
||||
|
||||
if (empty($data['hash'])) {
|
||||
@ -187,7 +190,7 @@ class ImportController extends Controller
|
||||
}
|
||||
|
||||
unset($data['files']);
|
||||
CSVIngest::dispatch($data, auth()->user()->company());
|
||||
CSVIngest::dispatch($data, $user->company());
|
||||
|
||||
return response()->json(['message' => ctrans('texts.import_started')], 200);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user