2
0

🐛 Fix misc bugs

This commit is contained in:
Baptiste Arnaud
2023-01-27 09:50:36 +01:00
parent 8e0043d51d
commit a738897dbb
4 changed files with 3 additions and 7 deletions

View File

@ -1,4 +1,3 @@
import { captureException } from '@sentry/nextjs'
import { SmtpCredentialsData } from 'models'
import { NextApiRequest, NextApiResponse } from 'next'
import { createTransport } from 'nodemailer'
@ -30,7 +29,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
})
res.status(200).send({ message: 'Email sent!', info })
} catch (err) {
captureException(err)
console.log(err)
res.status(500).send(err)
}