Problem
In health.service.ts (line 66), the database health check uses supabase.auth.getSession() which checks the Supabase auth service, not raw database connectivity. A healthy auth service but dead database would pass this check, giving a false positive.
Root Cause
The health check was implemented using the convenience method rather than a direct DB query.
What To Build
- Replace with a raw DB query:
SELECT 1 from Supabase
- Keep the auth check as a separate metric
- Return both DB and auth health in the response
Files To Touch
src/modules/health/health.service.ts — line 66 fix DB check
Acceptance Criteria
Mandatory Checks
Problem
In
health.service.ts(line 66), the database health check usessupabase.auth.getSession()which checks the Supabase auth service, not raw database connectivity. A healthy auth service but dead database would pass this check, giving a false positive.Root Cause
The health check was implemented using the convenience method rather than a direct DB query.
What To Build
SELECT 1from SupabaseFiles To Touch
src/modules/health/health.service.ts— line 66 fix DB checkAcceptance Criteria
Mandatory Checks