feat: ContactUs Nodemailer
This commit is contained in:
parent
c9ff0b9e08
commit
f6b9e7afe7
2 changed files with 24 additions and 24 deletions
18
lib/users.ts
18
lib/users.ts
|
|
@ -1,10 +1,10 @@
|
|||
import { prisma } from "./prisma"
|
||||
// import { prisma } from "./prisma"
|
||||
|
||||
export async function getUserByEmail(email: string) {
|
||||
try {
|
||||
const user = await prisma.user.findUnique({ where: { email } })
|
||||
return user
|
||||
} catch {
|
||||
return null
|
||||
}
|
||||
}
|
||||
// export async function getUserByEmail(email: string) {
|
||||
// try {
|
||||
// const user = await prisma.user.findUnique({ where: { email } })
|
||||
// return user
|
||||
// } catch {
|
||||
// return null
|
||||
// }
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue