From 79323c238869a639538867ed8025fc7899cddb81 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 13 May 2019 22:55:03 -0500 Subject: [PATCH] job status moved to before the delete portion --- app/Jobs/ProcessWalletJournalJob.php | 6 +++--- app/Jobs/ProcessWallettransactionJob.php | 6 +++--- app/Jobs/SendEveMailJob.php | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Jobs/ProcessWalletJournalJob.php b/app/Jobs/ProcessWalletJournalJob.php index 65bf67c4d..20172ad7b 100644 --- a/app/Jobs/ProcessWalletJournalJob.php +++ b/app/Jobs/ProcessWalletJournalJob.php @@ -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(); } /** diff --git a/app/Jobs/ProcessWallettransactionJob.php b/app/Jobs/ProcessWallettransactionJob.php index 92b9723ab..4a8e5b0b0 100644 --- a/app/Jobs/ProcessWallettransactionJob.php +++ b/app/Jobs/ProcessWallettransactionJob.php @@ -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(); } /** diff --git a/app/Jobs/SendEveMailJob.php b/app/Jobs/SendEveMailJob.php index d760b6e9e..5e225326b 100644 --- a/app/Jobs/SendEveMailJob.php +++ b/app/Jobs/SendEveMailJob.php @@ -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(); } /**