Refactor check data
This commit is contained in:
parent
207ca28a46
commit
1af20bd955
1 changed files with 1 additions and 6 deletions
|
|
@ -382,19 +382,14 @@ class CheckData extends Command
|
|||
return;
|
||||
}
|
||||
|
||||
$current = config('database.default');
|
||||
$queueDB = config('queue.connections.database.connection');
|
||||
config(['database.default' => $queueDB]);
|
||||
|
||||
$count = DB::table('failed_jobs')->count();
|
||||
$count = DB::connection($queueDB)->table('failed_jobs')->count();
|
||||
|
||||
if ($count > 0) {
|
||||
$this->isValid = false;
|
||||
}
|
||||
|
||||
$this->logMessage($count . ' failed jobs');
|
||||
|
||||
config(['database.default' => $current]);
|
||||
}
|
||||
|
||||
private function checkBlankInvoiceHistory()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue