From 91e7d15449101083a56f74a106051aa52a4f16c1 Mon Sep 17 00:00:00 2001 From: eugenchio Date: Wed, 15 Jan 2025 16:04:55 +0200 Subject: [PATCH] Update contact form sls function with success response. --- lambda-functions/contact_form.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lambda-functions/contact_form.py b/lambda-functions/contact_form.py index 1e3d55e..e106531 100644 --- a/lambda-functions/contact_form.py +++ b/lambda-functions/contact_form.py @@ -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', + }) + }