fix 30 day -> 30 days in expiresAt

pull/2277/head
Agusti Fernandez Pardo 2022-04-06 16:49:13 +02:00
parent e6b2ff46ed
commit d66fd6a6c8
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ model ApiKey {
userId Int
note String?
createdAt DateTime @default(now())
expiresAt DateTime @default(dbgenerated("NOW() + interval '30 day'"))
expiresAt DateTime @default(dbgenerated("NOW() + interval '30 days'"))
lastUsedAt DateTime @default(now())
hashedKey String @unique()
user User? @relation(fields: [userId], references: [id], onDelete: Cascade)