mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-11 16:41:59 -06:00
Merge pull request #7443 from firefly-iii/expand-health-check
Change health endpoint to include a DB check.
This commit is contained in:
commit
4c26f613ee
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user