job status moved to before the delete portion

This commit is contained in:
2019-05-13 22:55:03 -05:00
parent 7775391308
commit 79323c2388
3 changed files with 8 additions and 8 deletions

View File

@@ -62,13 +62,13 @@ class ProcessWalletJournalJob implements ShouldQueue
$finance->GetWalletJournalPage($this->division, $this->charId, $this->page);
//After the job is completed, delete the job
$this->delete();
$status = new JobStatus;
$status->job_name = 'Process Wallet Journal';
$status->complete = true;
$status->save();
//After the job is completed, delete the job
$this->delete();
}
/**

View File

@@ -58,13 +58,13 @@ class ProcessWalletTransactionJob implements ShouldQueue
$finance->GetWalletTransaction($this->division, $this->charId);
//After the job is completed, delete the job
$this->delete();
$status = new JobStatus;
$status->job_name = 'Process Wallet Transaction';
$status->complete = true;
$status->save();
//After the job is completed, delete the job
$this->delete();
}
/**

View File

@@ -100,12 +100,12 @@ class SendEveMailJob implements ShouldQueue
return null;
}
$this->delete();
$status = new JobStatus;
$status->job_name = 'Send Eve Mail';
$status->complete = true;
$status->save();
$this->delete();
}
/**