From 337284166f7e871fbf6d38941845bd4b698b7e43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Sun, 12 Apr 2026 15:14:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=88=E4=BB=BB=E5=8A=A1=201.3/20=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/analyze-test-coverage.ts | 1 - src/app/api/admin/users/route.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/analyze-test-coverage.ts b/scripts/analyze-test-coverage.ts index b29e763..9683f91 100644 --- a/scripts/analyze-test-coverage.ts +++ b/scripts/analyze-test-coverage.ts @@ -1,5 +1,4 @@ import * as fs from 'fs'; -import * as path from 'path'; interface TestResult { title: string; diff --git a/src/app/api/admin/users/route.ts b/src/app/api/admin/users/route.ts index 01750dd..0e3a29e 100644 --- a/src/app/api/admin/users/route.ts +++ b/src/app/api/admin/users/route.ts @@ -57,7 +57,7 @@ export async function POST(request: NextRequest) { id: nanoid(), email, name, - password: hashedPassword, + passwordHash: hashedPassword, isAdmin: role === 'admin', createdAt: new Date(), updatedAt: new Date(),