fix typo when checking for sendgrid errors

This commit is contained in:
Thomas Ruoff
2020-08-20 00:31:49 +02:00
parent b2ca0515c1
commit fe10869ca0

View File

@@ -23,7 +23,7 @@ async function sendMail(data) {
}
const response = await fetch(SENDGRID_URL, fetchOptions)
if (!repsonse.ok) {
if (!response.ok) {
throw new Error(
`Failed to send booking ${data._id} to booking admin with status ${response.status}: ${response.statusText}`
)