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(); } /**