Include Profile log in renamed penalty model -> Audit log
This commit is contained in:
@@ -23,6 +23,7 @@ export const options: AuthOptions = {
|
||||
contains: credentials.email,
|
||||
mode: "insensitive",
|
||||
},
|
||||
isDeleted: false,
|
||||
},
|
||||
});
|
||||
const v1User = (oldUser as OldUser[]).find(
|
||||
@@ -87,6 +88,7 @@ export const options: AuthOptions = {
|
||||
const dbUser = await prisma.user.findUnique({
|
||||
where: {
|
||||
id: token?.sub,
|
||||
isDeleted: false,
|
||||
},
|
||||
});
|
||||
if (!dbUser) {
|
||||
|
||||
Reference in New Issue
Block a user