fix build error

This commit is contained in:
songtianlun 2025-08-26 22:50:29 +08:00
parent dfdf85b320
commit 4ce167cdaf
2 changed files with 2 additions and 5 deletions

View File

@ -168,7 +168,7 @@ model Credit {
id String @id @default(cuid())
userId String
amount Float // 交易金额(正数为充值,负数为消费)
balance Float @default(0) // 执行该交易后的余额
balance Float @default(5) // 执行该交易后的余额
type String // "system_gift", "subscription_monthly", "user_purchase", "consumption"
category String? // 消费类别: "simulation", "api_call", "export" 等
note String? // 备注说明

View File

@ -41,10 +41,7 @@ export async function POST(request: Request) {
user.id,
amount,
'user_purchase',
'development',
null,
null,
`Development top-up: $${amount}`
`Development top-up: $${amount}`,
)
return NextResponse.json({