feat: profile page done

This commit is contained in:
pit
2023-10-02 11:38:04 +01:00
committed by Mythie
parent 82c1ca13be
commit ff58735153
4 changed files with 36 additions and 52 deletions

View File

@ -3,13 +3,12 @@ import { Role } from '@documenso/prisma/client';
export type UpdateUserOptions = {
id: number;
name: string;
email: string;
roles: Role[];
name: string | null | undefined;
email: string | undefined;
roles: Role[] | undefined;
};
export const updateUser = async ({ id, name, email, roles }: UpdateUserOptions) => {
console.log('wtf');
await prisma.user.findFirstOrThrow({
where: {
id,