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