app/Jobs/ImportProfession.php: make $character variable optional and require $user.
This commit is contained in:
parent
f82f7c3571
commit
8eda7a315c
6 changed files with 174 additions and 34 deletions
|
|
@ -41,7 +41,7 @@ class CharacterProfessionController extends Controller
|
|||
$data = json_decode($request->input('data'));
|
||||
|
||||
try {
|
||||
ImportProfession::dispatch($character, $data);
|
||||
ImportProfession::dispatch($data, $request->user(), $character);
|
||||
} catch(\App\ProfessionImport\Exception $e) {
|
||||
return redirect()->back()->with('error', $e->getMessage());
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue