Website: Add organization to questionnaire responses (#23167)

Closes: https://github.com/fleetdm/confidential/issues/8238

Changes:
- Updated save-questionnaire-progress to prepend a
"org-acording-to-fleetdm.com" response to the questionnaire answers
reported to the CRM
This commit is contained in:
Eric 2024-10-24 16:41:43 -05:00 committed by GitHub
parent 9d69f01c2b
commit c38e53d1c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -216,6 +216,9 @@ module.exports = {
} catch(err){
sails.log.warn(`When converting a user's (email: ${this.req.me.emailAddress}) getStartedQuestionnaireAnswers to a formatted string to send to the CRM, and error occurred`, err);
}
// Prepend the user's reported organization to the questionnaireProgressAsAFormattedString
questionnaireProgressAsAFormattedString = `organization-acording-to-fleetdm.com: ${this.req.me.organization}\n` + questionnaireProgressAsAFormattedString;
// Create a dictionary of values to send to the CRM for this user.
let contactInformation = {
emailAddress: this.req.me.emailAddress,