Updates to user schema, account page

Renamed isAccountVerified to accountIsVerified, add account info to account page
This commit is contained in:
Aaron William Po
2023-05-11 22:20:51 -04:00
parent 55afcdec70
commit 2eb2626d54
8 changed files with 160 additions and 22 deletions

View File

@@ -5,12 +5,12 @@ import { z } from 'zod';
const updateUserToBeConfirmedById = async (id: string) => {
const user: z.infer<typeof GetUserSchema> = await DBClient.instance.user.update({
where: { id },
data: { isAccountVerified: true, updatedAt: new Date() },
data: { accountIsVerified: true, updatedAt: new Date() },
select: {
id: true,
username: true,
email: true,
isAccountVerified: true,
accountIsVerified: true,
createdAt: true,
firstName: true,
lastName: true,