diff --git a/app/Jobs/ProcessWalletJournalJob.php b/app/Jobs/ProcessWalletJournalJob.php index 9cf89da53..2ca19843b 100644 --- a/app/Jobs/ProcessWalletJournalJob.php +++ b/app/Jobs/ProcessWalletJournalJob.php @@ -63,14 +63,14 @@ class ProcessWalletJournalJob implements ShouldQueue $finance->GetWalletJournalPage($this->division, $this->charId, $this->page); - //After the job is completed, delete the job - $this->delete(); - //If the job is completed, mark down the completed job in the status table for jobs $job = new JobStatus; $job->job_name = $this->getName(); $job->complete = true; $job->save(); + + //After the job is completed, delete the job + $this->delete(); } /** diff --git a/app/Jobs/ProcessWallettransactionJob.php b/app/Jobs/ProcessWallettransactionJob.php index ad617595f..27237a3ae 100644 --- a/app/Jobs/ProcessWallettransactionJob.php +++ b/app/Jobs/ProcessWallettransactionJob.php @@ -61,14 +61,14 @@ class ProcessWalletTransactionJob implements ShouldQueue $finance->GetWalletTransaction($this->division, $this->charId); - //After the job is completed, delete the job - $this->delete(); - //If the job is completed, mark down the completed job in the status table for jobs $job = new JobStatus; $job->job_name = $this->getName(); $job->complete = true; $job->save(); + + //After the job is completed, delete the job + $this->delete(); } /** diff --git a/app/Jobs/SendEveMailJob.php b/app/Jobs/SendEveMailJob.php index dffff0318..cd4521df8 100644 --- a/app/Jobs/SendEveMailJob.php +++ b/app/Jobs/SendEveMailJob.php @@ -99,14 +99,14 @@ class SendEveMailJob implements ShouldQueue } catch(RequestFailedException $e) { return null; } - - $this->delete(); - + //If the job is completed, mark down the completed job in the status table for jobs $job = new JobStatus; $job->job_name = $this->getName(); $job->complete = true; $job->save(); + + $this->delete(); } /**