Error when update API Key
got this error when tried to
update
api-key but create
, delete
, list
is work fine, how to solve this?
here's prisma
model Apikey {
id String @id
name String?
start String?
prefix String?
key String
userId String
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
refillInterval Int?
refillAmount Int?
lastRefillAt DateTime?
enabled Boolean @default(true)
rateLimitEnabled Boolean @default(false)
rateLimitTimeWindow Int?
rateLimitMax Int?
requestCount Int @default(0)
remaining Int?
lastRequest DateTime?
expiresAt DateTime?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
permissions String?
metadata String?
@@map("apikey")
}
model Apikey {
id String @id
name String?
start String?
prefix String?
key String
userId String
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
refillInterval Int?
refillAmount Int?
lastRefillAt DateTime?
enabled Boolean @default(true)
rateLimitEnabled Boolean @default(false)
rateLimitTimeWindow Int?
rateLimitMax Int?
requestCount Int @default(0)
remaining Int?
lastRequest DateTime?
expiresAt DateTime?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
permissions String?
metadata String?
@@map("apikey")
}
1 Reply
I have the same issue