mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Check failed_jobs is empty in check-data
This commit is contained in:
parent
1487da3dc4
commit
392bfa7c25
@ -69,6 +69,7 @@ class CheckData extends Command
|
||||
$this->checkBalances();
|
||||
|
||||
if (! $this->option('client_id')) {
|
||||
$this->checkFailedJobs();
|
||||
$this->checkAccountData();
|
||||
}
|
||||
|
||||
@ -91,6 +92,17 @@ class CheckData extends Command
|
||||
$this->log .= $str . "\n";
|
||||
}
|
||||
|
||||
private function checkFailedJobs()
|
||||
{
|
||||
$count = DB::table('failed_jobs')->count();
|
||||
|
||||
if ($count > 0) {
|
||||
$this->isValid = false;
|
||||
}
|
||||
|
||||
$this->logMessage($count . ' failed jobs');
|
||||
}
|
||||
|
||||
private function checkBlankInvoiceHistory()
|
||||
{
|
||||
$count = DB::table('activities')
|
||||
|
Loading…
x
Reference in New Issue
Block a user