mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Website: reduce number of helper calls in save-questionnaire-progress (#18647)
Changes: - Updated the conditional that decides whether or not to create/update Salesforce records to check if a psychological stage changes.
This commit is contained in:
parent
cb6cfe9da5
commit
47362020ed
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ module.exports = {
|
|||
}//fi
|
||||
|
||||
// Only update CRM records if the user's psychological stage changes.
|
||||
if(currentStep !== userRecord.currentStep){
|
||||
if(psychologicalStage !== userRecord.psychologicalStage){
|
||||
await sails.helpers.salesforce.updateOrCreateContactAndAccount.with({
|
||||
emailAddress: this.req.me.emailAddress,
|
||||
firstName: this.req.me.firstName,
|
||||
|
|
|
|||
Loading…
Reference in a new issue