From b8793ee77664f4725466ef54e08d5aa42c1e1d00 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 3 May 2024 17:29:56 -0500 Subject: [PATCH] Website: Update save-questionnaire-progress (#18753) Follow up PR to https://github.com/fleetdm/fleet/pull/18721. --- website/api/controllers/save-questionnaire-progress.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/api/controllers/save-questionnaire-progress.js b/website/api/controllers/save-questionnaire-progress.js index 9ff49c958c..ef53e88ac5 100644 --- a/website/api/controllers/save-questionnaire-progress.js +++ b/website/api/controllers/save-questionnaire-progress.js @@ -219,11 +219,11 @@ module.exports = { primaryBuyingSituation: primaryBuyingSituation === 'eo-security' ? 'Endpoint operations - Security' : primaryBuyingSituation === 'eo-it' ? 'Endpoint operations - IT' : primaryBuyingSituation === 'mdm' ? 'Device management (MDM)' : primaryBuyingSituation === 'vm' ? 'Vulnerability management' : undefined, organization: this.req.me.organization, psychologicalStage, - }).catch((err)=>{ - sails.log.warn(`When a user (email: ${this.req.me.emailAddress} submitted a step of the get started questionnaire, a Contact and Account record could not be created/updated in the CRM. Full error:`, err); + }).tolerate((err)=>{ + sails.log.warn(`Background task failed: When a user (email: ${this.req.me.emailAddress} submitted a step of the get started questionnaire, a Contact and Account record could not be created/updated in the CRM. Full error:`, err); }); - }); - } + });//_∏_ (Meanwhile...) + }//fi // TODO: send all other answers to Salesforce (when there are fields for them) // await sails.helpers.http.post.with({