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

View File

@@ -57,15 +57,15 @@ class ProcessWalletJournalJob implements ShouldQueue
*/
public function handle()
{
$status = new JobHelper('Process Wallet Journal');
$status->SetStartStatus();
//Declare the class variable we need
$finance = new FinanceHelper();
$finance->GetWalletJournalPage($this->division, $this->charId, $this->page);
$status = new JobStatus;
$status->job_name = 'Process Wallet Journal';
$status->complete = true;
$status->save();
$status->SetStopStatus();
//After the job is completed, delete the job
$this->delete();