mirror of
https://github.com/appwrite/appwrite
synced 2026-05-21 16:08:22 +00:00
Refactor health check logic to simplify database failure handling
This commit is contained in:
parent
b5537bb714
commit
7041cae48c
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ App::get('/v1/health/db')
|
|||
|
||||
// Only throw error if ALL databases failed (no successful pings)
|
||||
// This allows partial failures in environments where not all DBs are ready
|
||||
if (!empty($failures) && empty($output)) {
|
||||
if (!empty($failures)) {
|
||||
throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failures));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue