fix: classify database outages and restore real HTTP fault checks
Application / verify (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Vladislav Agapov
2026-10-16 10:19:46 +03:00
parent b90581f613
commit 87e1e5d94b
25 changed files with 449 additions and 16 deletions
+1 -1
View File
@@ -54,5 +54,5 @@ func (s *Store) UsersExist(ctx context.Context, ids []uuid.UUID) (bool, error) {
var exists bool
err := s.pool.QueryRow(ctx, `SELECT NOT EXISTS (SELECT id FROM unnest(@ids::uuid[]) AS requested(id)
WHERE NOT EXISTS (SELECT 1 FROM users WHERE users.id=requested.id))`, pgx.StrictNamedArgs{"ids": ids}).Scan(&exists)
return exists, err
return exists, normalize(err)
}