structure taxes troubleshooting

This commit is contained in:
2019-02-03 01:16:46 -06:00
parent 972f9fd1aa
commit 3349a962f0

View File

@@ -21,7 +21,7 @@ class LookupHelper {
public function LookupCharacter($charId) {
//Check for the character in the user_to_corporation table
$found = CharacterToCorporation::where('character_id', $charId)->get(['corporation_id']);
dd($found);
//If we don't find the character in the table, then we retrieve from ESI
//and add the character to the table
if(!isset($found[0]->corporation_id)) {
@@ -43,8 +43,6 @@ class LookupHelper {
return $e->getEsiResponse();
}
dd($character);
//Save all of the data to the database
$char = new UserToCorporation;
$char->character_id = $charId;
@@ -56,7 +54,7 @@ class LookupHelper {
return $character->corporation_id;
} else {
//Return the corporation_id if it was found in the database as it is what the calling function is looking for
return $found[0]->corporation_id;
return $found;
}
}