1
0
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:
David Bomba 2023-09-06 14:41:15 +10:00
parent 3fd78e1074
commit 2377f4be2b

View File

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