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:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user