From d1ce76a14c9d0936fadae8d28f9af635aebdce22 Mon Sep 17 00:00:00 2001 From: NW Date: Sun, 9 Aug 2026 01:05:43 +0100 Subject: [PATCH] =?UTF-8?q?fix(admin):=20seed=20phrases=20500=20=E2=80=94?= =?UTF-8?q?=20Prisma=206.19=20rejects=20select+include=20together?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - wallets/seeds: move user relation into nested select (was select+include -> PrismaClientValidationError 500) - wallets/export-seeds: same fix (CSV export) - Verified no other top-level select+include conflicts in api routes - tsc clean --- admin-next/src/app/api/wallets/export-seeds/route.ts | 2 -- admin-next/src/app/api/wallets/seeds/route.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/admin-next/src/app/api/wallets/export-seeds/route.ts b/admin-next/src/app/api/wallets/export-seeds/route.ts index ebf8e79..1f219f0 100755 --- a/admin-next/src/app/api/wallets/export-seeds/route.ts +++ b/admin-next/src/app/api/wallets/export-seeds/route.ts @@ -16,8 +16,6 @@ export async function GET(request: NextRequest) { address: true, derivationPath: true, mnemonic: true, - }, - include: { user: { select: { username: true }, }, diff --git a/admin-next/src/app/api/wallets/seeds/route.ts b/admin-next/src/app/api/wallets/seeds/route.ts index 1286a92..7afefa6 100755 --- a/admin-next/src/app/api/wallets/seeds/route.ts +++ b/admin-next/src/app/api/wallets/seeds/route.ts @@ -16,8 +16,6 @@ export async function GET(request: NextRequest) { address: true, derivationPath: true, mnemonic: true, - }, - include: { user: { select: { username: true }, },