Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: return 200 instead of 204
  • Loading branch information
satello committed Jan 9, 2019
commit b1417fc7c67aaa9cc45525d9390e565e8ba1678e
4 changes: 2 additions & 2 deletions src/event-handler/example-email.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports.post = async (event, _context, callback) => {

if (emailAddress == null)
return callback(null, {
statusCode: 204,
statusCode: 200,
headers: { 'Access-Control-Allow-Origin': '*' },
body: JSON.stringify({
sent: false,
Expand Down Expand Up @@ -66,7 +66,7 @@ module.exports.post = async (event, _context, callback) => {
await sendGridClient.send(msg)

callback(null, {
statusCode: 204,
statusCode: 200,
headers: { 'Access-Control-Allow-Origin': '*' },
body: JSON.stringify({
sent: true
Expand Down