fix: classify database outages and restore real HTTP fault checks
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user