This commit is contained in:
2018-12-30 01:05:02 -06:00
parent 44e3570d76
commit ab680aff38
+2 -2
View File
@@ -63,7 +63,7 @@ class SendMail extends Command
$task->SetStartStatus(); $task->SetStartStatus();
//Retrieve the token for main character to send mails from //Retrieve the token for main character to send mails from
$token = EsiToken::where(['character_id' => 93738489])->get(); $token = EsiToken::where(['character_id' => 93738489])->first();
//Set the date //Set the date
$date = Carbon::now()->subMonth(); $date = Carbon::now()->subMonth();
@@ -74,7 +74,7 @@ class SendMail extends Command
$authentication = new EsiAuthentication([ $authentication = new EsiAuthentication([
'client_id' => $config['client_id'], 'client_id' => $config['client_id'],
'secret' => $config['secret'], 'secret' => $config['secret'],
'refresh_token' => $token[0]->refresh_token, 'refresh_token' => $token->refresh_token,
]); ]);
$esi = new Eseye($authentication); $esi = new Eseye($authentication);