mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(api): delete exam auth tokens with user (#58284)
This commit is contained in:
committed by
GitHub
parent
3c236df7f6
commit
5deea90fa3
@@ -382,7 +382,7 @@ model ExamEnvironmentAuthorizationToken {
|
||||
userId String @unique @db.ObjectId
|
||||
|
||||
// Relations
|
||||
user user @relation(fields: [userId], references: [id])
|
||||
user user @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
}
|
||||
|
||||
model sessions {
|
||||
|
||||
Reference in New Issue
Block a user