Files
evig/src/lib/middleware
g-butandClaude Opus 4.5 3d301180ef fix: code quality cleanup - TypeScript types, TABLE_NAMES, role constants
- Replace all `any` types with proper interfaces (ListedProductResult,
  RegistrationData, ApiReviewResponse, UserProfile, etc.)
- Fix catch block error types from `any` to `unknown` with type guards
- Add TABLE_NAMES constants: ESCROW_RELEASES, ORDER_ITEMS,
  REPAIRER_CERTIFICATIONS, CERTIFICATION_TYPES
- Replace hardcoded table names with TABLE_NAMES in all API routes
- Replace hardcoded role checks with isAdminRole() helper
- Fix `as any` casts with proper type unions in form handlers

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 21:25:45 +01:00
..