From 2a6df0b659e73f1fa5d0359d2cca5bea25c08fa2 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 12 Nov 2025 11:07:10 -0600 Subject: [PATCH] Website: update create-or-update-one-newsletter-subscription action (#35627) Closes: https://github.com/fleetdm/confidential/issues/13025 Changes: - Updated the emailAddress input of the create-or-update-one-newsletter-subscription action to use `isEmail` validation --- .../controllers/create-or-update-one-newsletter-subscription.js | 1 + website/api/controllers/deliver-contact-form-message.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/website/api/controllers/create-or-update-one-newsletter-subscription.js b/website/api/controllers/create-or-update-one-newsletter-subscription.js index d8b2863456..6985c8ad01 100644 --- a/website/api/controllers/create-or-update-one-newsletter-subscription.js +++ b/website/api/controllers/create-or-update-one-newsletter-subscription.js @@ -10,6 +10,7 @@ module.exports = { inputs: { emailAddress: { type: 'string', + isEmail: true, required: true, }, diff --git a/website/api/controllers/deliver-contact-form-message.js b/website/api/controllers/deliver-contact-form-message.js index fbe54cc7e3..020106bb69 100644 --- a/website/api/controllers/deliver-contact-form-message.js +++ b/website/api/controllers/deliver-contact-form-message.js @@ -130,7 +130,7 @@ Fleet Premium subscription details: sails.log.warn(`Background task failed: When a user submitted a contact form message, a contact/account/historical event could not be created/updated in the CRM for this email address: ${emailAddress}.`, err); } return; - }); + });//_∏_ }