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}); }