Minor fixes

This commit is contained in:
David Bomba 2021-08-09 08:44:51 +10:00
parent 3fe22e79a8
commit acfb3ac3af
3 changed files with 9 additions and 1 deletions

View File

@ -736,6 +736,11 @@ class BaseController extends Controller
$data['report_errors'] = true; $data['report_errors'] = true;
} }
$data['rc'] = '';
if(request()->has('rc'))
$data['rc'] = request()->input('rc');
$this->buildCache(); $this->buildCache();
return view('index.index', $data); return view('index.index', $data);

View File

@ -30,6 +30,8 @@ class ReminderJob implements ShouldQueue
{ {
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels, MakesReminders, MakesDates; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels, MakesReminders, MakesDates;
public $tries = 1;
public function __construct() public function __construct()
{ {
} }
@ -48,6 +50,7 @@ class ReminderJob implements ShouldQueue
//multiDB environment, need to //multiDB environment, need to
foreach (MultiDB::$dbs as $db) { foreach (MultiDB::$dbs as $db) {
MultiDB::setDB($db); MultiDB::setDB($db);
nlog("set db {$db}");
$this->processReminders(); $this->processReminders();
} }
} }

View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html data-report-errors="{{ $report_errors }}"> <html data-report-errors="{{ $report_errors }}" data-rc="{{ $rc }}">
<head> <head>
<!-- Source: https://github.com/invoiceninja/invoiceninja --> <!-- Source: https://github.com/invoiceninja/invoiceninja -->
<!-- Version: {{ config('ninja.app_version') }} --> <!-- Version: {{ config('ninja.app_version') }} -->