Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Dougley authored Aug 30, 2021
1 parent 4d4c419 commit 2386d24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions func/submission-created.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ exports.handler = async function (event, context) {
}];
}
}

const result = await fetch(`${API_ENDPOINT}/channels/${encodeURIComponent(process.env.APPEALS_CHANNEL)}/messages`, {
method: "POST",
headers: {
Expand All @@ -102,6 +103,7 @@ exports.handler = async function (event, context) {
},
body: JSON.stringify(message)
});

if (result.ok) {
if (process.env.USE_NETLIFY_FORMS) {
return {
Expand Down

0 comments on commit 2386d24

Please sign in to comment.