Skip to content

Commit 85eddc4

Browse files
author
vikasrohit
authored
Merge pull request #644 from topcoder-platform/hotfix/case-sensitive-sfdc-fieldname-markup
Hotfix/case sensitive sfdc fieldname markup
2 parents 8881f67 + abca371 commit 85eddc4

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

config/development.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"memberServiceEndpoint": "https://api.topcoder-dev.com/v3/members",
99
"identityServiceEndpoint": "https://api.topcoder-dev.com/v3/",
1010
"taasJobApiUrl": "https://api.topcoder-dev.com/v5/jobs",
11-
"sfdcBillingAccountNameField": "Billing_Account_Name__c"
11+
"sfdcBillingAccountNameField": "Billing_Account_Name__c",
12+
"sfdcBillingAccountMarkupField": "Mark_Up__c"
1213
}

config/production.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"authDomain": "topcoder.com",
33
"connectProjectsUrl": "https://connect.topcoder.com/projects/",
4-
"sfdcBillingAccountNameField": "Billing_Account_name__c"
4+
"sfdcBillingAccountNameField": "Billing_Account_name__c",
5+
"sfdcBillingAccountMarkupField": "Mark_up__c"
56
}

src/services/salesforceService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class SalesforceService {
101101
10,
102102
null, // fallback to null if cannot parse
103103
),
104-
markup: _.get(o, 'Mark_Up__c'),
104+
markup: _.get(o, config.get('sfdcBillingAccountMarkupField')),
105105
}));
106106
return billingAccounts.length > 0 ? billingAccounts[0] : {};
107107
});

0 commit comments

Comments
 (0)