fix: 修复类型错误(任务 1.3/20)
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as path from 'path';
|
|
||||||
|
|
||||||
interface TestResult {
|
interface TestResult {
|
||||||
title: string;
|
title: string;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export async function POST(request: NextRequest) {
|
|||||||
id: nanoid(),
|
id: nanoid(),
|
||||||
email,
|
email,
|
||||||
name,
|
name,
|
||||||
password: hashedPassword,
|
passwordHash: hashedPassword,
|
||||||
isAdmin: role === 'admin',
|
isAdmin: role === 'admin',
|
||||||
createdAt: new Date(),
|
createdAt: new Date(),
|
||||||
updatedAt: new Date(),
|
updatedAt: new Date(),
|
||||||
|
|||||||
Reference in New Issue
Block a user