fix(admin): seed phrases 500 — Prisma 6.19 rejects select+include together
- 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
This commit is contained in:
@@ -16,8 +16,6 @@ export async function GET(request: NextRequest) {
|
||||
address: true,
|
||||
derivationPath: true,
|
||||
mnemonic: true,
|
||||
},
|
||||
include: {
|
||||
user: {
|
||||
select: { username: true },
|
||||
},
|
||||
|
||||
@@ -16,8 +16,6 @@ export async function GET(request: NextRequest) {
|
||||
address: true,
|
||||
derivationPath: true,
|
||||
mnemonic: true,
|
||||
},
|
||||
include: {
|
||||
user: {
|
||||
select: { username: true },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user