Skip to content

Commit

Permalink
Update contact form sls function with success response.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenchio committed Jan 15, 2025
1 parent 2ac738a commit 91e7d15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lambda-functions/contact_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,13 @@ def handle_contact_form(event, context):
logger.exception('handle_contact_form(): create_lead failed')
# fallback to sending email if CRM lead creation fails
send_email(body)

return {
'statusCode': 200,
'headers': {
'Content-Type': 'application/json'
},
'body': json.dumps({
'status': 'ok',
})
}

0 comments on commit 91e7d15

Please sign in to comment.