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

@@ -27,7 +27,7 @@ const confirmUser = async (req: ConfirmUserRequest, res: NextApiResponse) => {
throw new ServerError('Could not confirm user.', 401);
}
if (user.isAccountVerified) {
if (user.accountIsVerified) {
throw new ServerError('User is already verified.', 400);
}