Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Change health endpoint to include a DB check.
James Cole765de2eeba43
diff --git a/app/Http/Controllers/System/HealthcheckController.php b/app/Http/Controllers/System/HealthcheckController.phpindex fef70b5b05..b6aad6e927 100644--- a/app/Http/Controllers/System/HealthcheckController.php+++ b/app/Http/Controllers/System/HealthcheckController.php@@ -23,6 +23,7 @@ declare(strict_types=1);namespace FireflyIII\Http\Controllers\System;+use FireflyIII\User;use FireflyIII\Http\Controllers\Controller;use Illuminate\Http\Response;@@ -38,6 +39,7 @@ class HealthcheckController extends Controller*/public function check(): Response{+ User::count(); // sanity check for database health. Will crash if not OK.return response('OK', 200);}}