fix: code style updates and email wording changes

This commit is contained in:
Mythie
2023-06-17 11:44:34 +10:00
parent e3bc41934c
commit d3f82e1eb0
4 changed files with 13 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
const cleanEmail = email.toLowerCase();
if (!cleanEmail || !/.+@.+/.test(cleanEmail)) {
res.status(422).json({ message: "Invalid email" });
res.status(400).json({ message: "Invalid email" });
return;
}