console command

This commit is contained in:
2018-12-06 18:20:39 -06:00
parent 4829f3d6c8
commit 24c898a413

View File

@@ -171,14 +171,14 @@ class FinanceHelper {
} catch(\Seat\Eseye\Exceptions\RequestFailedException $e){
return $e->getEsiResponse();
}
//Save all of the data to the database
$character = new UserToCorporation;
$character->character_id = $character->character_id;
$character->character_name = $character->name;
$character->corporation_id = $character->corporation_id;
$character->corporation_name = $corporation->name;
$character->save();
$char = new UserToCorporation;
$char->character_id = $character->character_id;
$char->character_name = $character->name;
$char->corporation_id = $character->corporation_id;
$char->corporation_name = $corporation->name;
$char->save();
//Return the corporation_id which is what the calling function is looking for
return $character->corporation_id;
} else {