mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
fix typo when checking for sendgrid errors
This commit is contained in:
@@ -23,7 +23,7 @@ async function sendMail(data) {
|
|||||||
}
|
}
|
||||||
const response = await fetch(SENDGRID_URL, fetchOptions)
|
const response = await fetch(SENDGRID_URL, fetchOptions)
|
||||||
|
|
||||||
if (!repsonse.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Failed to send booking ${data._id} to booking admin with status ${response.status}: ${response.statusText}`
|
`Failed to send booking ${data._id} to booking admin with status ${response.status}: ${response.statusText}`
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user