Compile

AI

Repair Engine

Automated architecture corrections

5 Repairs Applied
FIX_TYPE_MISMATCHAPI
2026-06-23T14:02:11Z

Wrapped return object in { data: ... } to match frontend expectations.

src/app/api/contacts/route.ts:42
ADD_SCALAR_FIELDDATABASE
2026-06-23T14:02:12Z

Added missing `userId String` field to Contact model to satisfy Prisma relation constraints.

prisma/schema.prisma:18
UPDATE_FALLBACK_ROLEAUTH
2026-06-23T14:02:13Z

Changed fallback role from 'ADMIN' to 'USER' to prevent insecure default assignment.

src/lib/auth.ts:114
EXTEND_INTERFACEUI
2026-06-23T14:02:14Z

Added `revenue: number` to AnalyticsData interface to resolve undefined property access.

src/components/dashboard/AnalyticsCharts.tsx:8
ADD_DB_INDEXDATABASE
2026-06-23T14:02:14Z

Added `@@index([email])` to User model to resolve performance warning on auth queries.

prisma/schema.prisma:22