job stuff

This commit is contained in:
2019-05-13 23:18:10 -05:00
parent 79323c2388
commit 98ee6f5206
7 changed files with 57 additions and 13 deletions
+4 -4
View File
@@ -69,6 +69,9 @@ class SendEveMailJob implements ShouldQueue
*/
public function handle()
{
$status = new JobHelper('Send EveMail');
$status->SetStartStatus();
//Retrieve the token for main character to send mails from
$token = EsiToken::where(['character_id'=> 93738489])->get();
@@ -100,10 +103,7 @@ class SendEveMailJob implements ShouldQueue
return null;
}
$status = new JobStatus;
$status->job_name = 'Send Eve Mail';
$status->complete = true;
$status->save();
$status->SetStopStatus();
$this->delete();
}