From 085a7f2c3a2e88cd63f209fea90fc2b6d9e6f92d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 31 Jul 2017 12:48:30 +0300 Subject: [PATCH] Working on tests --- app/Console/Commands/CheckData.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/CheckData.php b/app/Console/Commands/CheckData.php index 43ce68a602..332bd3ec69 100644 --- a/app/Console/Commands/CheckData.php +++ b/app/Console/Commands/CheckData.php @@ -84,9 +84,9 @@ class CheckData extends Command if (! $this->option('client_id')) { $this->checkOAuth(); $this->checkInvitations(); - $this->checkFailedJobs(); $this->checkAccountData(); $this->checkLookupData(); + $this->checkFailedJobs(); } $this->logMessage('Done: ' . strtoupper($this->isValid ? RESULT_SUCCESS : RESULT_FAILURE)); @@ -371,8 +371,8 @@ class CheckData extends Command private function checkFailedJobs() { - //$current = config('database.default'); - //config(['database.default' => env('QUEUE_DATABASE')]); + $current = config('database.default'); + config(['database.default' => env('QUEUE_DATABASE')]); $count = DB::table('failed_jobs')->count(); @@ -382,7 +382,7 @@ class CheckData extends Command $this->logMessage($count . ' failed jobs'); - //config(['database.default' => $current]); + config(['database.default' => $current]); } private function checkBlankInvoiceHistory()