mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +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)
|
||||
|
||||
if (!repsonse.ok) {
|
||||
if (!response.ok) {
|
||||
throw new Error(
|
||||
`Failed to send booking ${data._id} to booking admin with status ${response.status}: ${response.statusText}`
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user