command for moon mailer

This commit is contained in:
2019-02-16 02:06:22 -06:00
parent 4b2aedd241
commit 5357746e6b

View File

@@ -24,9 +24,8 @@ class LookupHelper {
$esi = new Eseye();
//Attempt to find the character name in the LookupCharacter table to see if we can match it to an id
$charId = CharacterToCorporation::where(['character_name' => $character])->get(['character_id']);
dd($charId);
if($charId == null) {
$char = CharacterToCorporation::where(['character_name' => $character])->get(['character_id']);
if(!isset($char->character_id)) {
//Get the character id from the ESI API.
$response = $esi->setQueryString([
'categories' => 'character',
@@ -38,7 +37,6 @@ class LookupHelper {
return $response->character[0];
} else {
dd($charId);
return $charId[0]->character_id;
}
}