This commit is contained in:
2018-12-30 01:09:41 -06:00
parent c9bff0a7d6
commit 8909a81b86

View File

@@ -63,7 +63,7 @@ class SendMail extends Command
$task->SetStartStatus();
//Retrieve the token for main character to send mails from
$token = EsiToken::where(['character_id' => 93738489])->first();
$refresh = EsiToken::select('refresh_token')->where(['character_id' => 93738489])->get();
//Set the date
$date = Carbon::now()->subMonth();
@@ -74,7 +74,7 @@ class SendMail extends Command
$authentication = new EsiAuthentication([
'client_id' => $config['client_id'],
'secret' => $config['secret'],
'refresh_token' => $token->refresh_token,
'refresh_token' => $refresh,
]);
$esi = new Eseye($authentication);