From 435fff622447b3071ec964a16c99b513558545d0 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 5 May 2019 01:28:26 -0500 Subject: [PATCH] job re-order files --- app/Jobs/ProcessWalletJournalJob.php | 6 +++--- app/Jobs/ProcessWallettransactionJob.php | 6 +++--- app/Jobs/SendEveMailJob.php | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) 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(); } /**