mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
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:
parent
9d69f01c2b
commit
c38e53d1c6
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue