Skip to content

Commit

Permalink
test CF
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Jul 25, 2024
1 parent 1f1a017 commit 81585f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/admin_mailer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ const sendAdminEmailCloudflareWorkers = async ({
})

const response = await fetch(send_request)
const responseBody = await response.text()
console.log("MailChannels API response:", responseBody)
if (!response.ok) {
const issue = await response.text()
console.log("Error sending admin email with MailChannels API", issue)
console.log("Error sending admin email with MailChannels API", responseBody)
return
}

}

0 comments on commit 81585f7

Please sign in to comment.