command for moon mailer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user