From cf5a9c978056ce5da5e38ea5df27deec27032926 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Mon, 23 Oct 2023 23:27:35 +0100 Subject: [PATCH] Resolved a small bug --- src/pages/api/reset/sendVerification.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/api/reset/sendVerification.ts b/src/pages/api/reset/sendVerification.ts index 7aff44d8..cf028f59 100644 --- a/src/pages/api/reset/sendVerification.ts +++ b/src/pages/api/reset/sendVerification.ts @@ -26,5 +26,9 @@ async function sendVerification(req: NextApiRequest, res: NextApiResponse) { ); await transport.sendMail(mailOptions); + + res.status(200).json({ok: true}); + return; } + res.status(404).json({ok: false}); }