fix case issue that caused rename prob

This commit is contained in:
Aaron William Po
2023-02-09 04:16:03 -05:00
parent dbd342fd3e
commit 9ba51c1ab3
7 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import DBClient from '@/prisma/DBClient';
const findUserByEmail = async (email: string) =>
DBClient.instance.user.findFirst({
where: { email },
select: {
id: true,
username: true,
hash: true,
},
});
export default findUserByEmail;