minor improvement

This commit is contained in:
Daniel
2023-07-12 15:17:19 -04:00
parent 4d88f7856b
commit 0bcb8515a0
+8
View File
@@ -37,6 +37,14 @@ export default async function Index(
if (EmailProvider)
await prisma.user.deleteMany({
where: {
OR: [
{
email: body.email,
},
{
username: body.username,
},
],
createdAt: {
lt: tenMinutesAgo,
},