From 9e78233a3bf6b1b5ca9d471433efe59ef89ce394 Mon Sep 17 00:00:00 2001 From: Adam Jones Date: Mon, 20 May 2024 11:25:14 +0100 Subject: [PATCH] login-account-proxy: Remove error logs --- apps/login-account-proxy/src/pages/api/public/submit.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/login-account-proxy/src/pages/api/public/submit.ts b/apps/login-account-proxy/src/pages/api/public/submit.ts index 3f2d1d0..3c0317c 100644 --- a/apps/login-account-proxy/src/pages/api/public/submit.ts +++ b/apps/login-account-proxy/src/pages/api/public/submit.ts @@ -14,10 +14,8 @@ export default apiRoute(async ( req: NextApiRequest, res: NextApiResponse, ) => { - // TODO: better schema validation const data = (typeof req.body === 'string' ? JSON.parse(req.body) : req.body) as SubmitRequest; if (typeof data.newEmail !== 'string' || typeof data.password !== 'string' || typeof data.secret !== 'string') { - console.error(`Invalid payload: ${JSON.stringify(req.body)}`); res.status(400).send({ type: 'error', message: 'Invalid payload' }); return; }