fix(api): delete exam auth tokens with user (#58284)

This commit is contained in:
Oliver Eyton-Williams
2025-01-24 08:20:31 -06:00
committed by GitHub
parent 3c236df7f6
commit 5deea90fa3
4 changed files with 33 additions and 16 deletions
+6
View File
@@ -379,3 +379,9 @@ export async function seedEnvExamAttempt() {
data: examAttempt
});
}
export async function seedExamEnvExamAuthToken() {
return fastifyTestInstance.prisma.examEnvironmentAuthorizationToken.create({
data: { userId: defaultUserId, expireAt: new Date(Date.now() + 60000) }
});
}