wip: refresh design

This commit is contained in:
Mythie
2023-06-09 18:21:18 +10:00
parent 5ec97657c1
commit 803ebccee3
432 changed files with 19755 additions and 26866 deletions

View File

@ -0,0 +1,13 @@
import { prisma } from '@documenso/prisma';
export interface GetUserByEmailOptions {
email: string;
}
export const getUserByEmail = async ({ email }: GetUserByEmailOptions) => {
return await prisma.user.findFirstOrThrow({
where: {
email: email.toLowerCase(),
},
});
};