HaveEsiScope had issues

This commit is contained in:
2019-08-25 20:17:32 -05:00
parent 0c768874ae
commit 4be3f9b33d

View File

@@ -42,9 +42,7 @@ class Esi {
//Check for an esi scope
$check = EsiScope::where(['character_id' => $charId, 'scope' => $scope])->count();
if($check == 0) {
return true;
}
//Compose a mail to send to the user if the scope is not found
$mail = new EveMail;
$mail->sender = $config['primary'];
$mail->subject = 'W4RP Services - Incorrect ESI Scope';
@@ -53,10 +51,12 @@ class Esi {
$mail->recipient_type = 'character';
ProcessSendEveMailJob::dispatch($mail)->onQueue('mail')->delay(Carbon::now()->addSeconds(5));
return false;
}
return true;
}
public function GetCharacterData($charId) {
$esi = new Eseye();
try {