chore: send email when new record apply
This commit is contained in:
+1
-1
@@ -229,7 +229,7 @@ export function checkUserStatus(user: any) {
|
||||
|
||||
export function getFirstAdminUser() {
|
||||
return prisma.user.findFirst({
|
||||
where: { role: UserRole.ADMIN },
|
||||
where: { role: UserRole.ADMIN, email: { not: "admin@admin.com" } },
|
||||
select: { email: true },
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user