db management fix

This commit is contained in:
root
2026-05-22 17:21:52 -04:00
parent bae4942276
commit 48ecde2a51
13 changed files with 294 additions and 7 deletions
+8 -1
View File
@@ -31,7 +31,14 @@ function parseOptionalDate(value?: string | null) {
}
export function findAdminByEmail(email: string) {
return prisma.adminUser.findUnique({ where: { email } })
return prisma.adminUser.findFirst({
where: {
email: {
equals: email,
mode: 'insensitive',
},
},
})
}
export function findAdminByIdOrThrow(id: string) {