mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 00:34:29 -04:00
Working on tests
This commit is contained in:
parent
ecc6fd5bfd
commit
085a7f2c3a
@ -84,9 +84,9 @@ class CheckData extends Command
|
|||||||
if (! $this->option('client_id')) {
|
if (! $this->option('client_id')) {
|
||||||
$this->checkOAuth();
|
$this->checkOAuth();
|
||||||
$this->checkInvitations();
|
$this->checkInvitations();
|
||||||
$this->checkFailedJobs();
|
|
||||||
$this->checkAccountData();
|
$this->checkAccountData();
|
||||||
$this->checkLookupData();
|
$this->checkLookupData();
|
||||||
|
$this->checkFailedJobs();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->logMessage('Done: ' . strtoupper($this->isValid ? RESULT_SUCCESS : RESULT_FAILURE));
|
$this->logMessage('Done: ' . strtoupper($this->isValid ? RESULT_SUCCESS : RESULT_FAILURE));
|
||||||
@ -371,8 +371,8 @@ class CheckData extends Command
|
|||||||
|
|
||||||
private function checkFailedJobs()
|
private function checkFailedJobs()
|
||||||
{
|
{
|
||||||
//$current = config('database.default');
|
$current = config('database.default');
|
||||||
//config(['database.default' => env('QUEUE_DATABASE')]);
|
config(['database.default' => env('QUEUE_DATABASE')]);
|
||||||
|
|
||||||
$count = DB::table('failed_jobs')->count();
|
$count = DB::table('failed_jobs')->count();
|
||||||
|
|
||||||
@ -382,7 +382,7 @@ class CheckData extends Command
|
|||||||
|
|
||||||
$this->logMessage($count . ' failed jobs');
|
$this->logMessage($count . ' failed jobs');
|
||||||
|
|
||||||
//config(['database.default' => $current]);
|
config(['database.default' => $current]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function checkBlankInvoiceHistory()
|
private function checkBlankInvoiceHistory()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user