mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01: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')) {
|
||||
$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()
|
||||
|
Loading…
Reference in New Issue
Block a user