Website: upgrade jsforce dependency (#39999)

Changes:
- upgraded the version of jsforce used by the website (`1.11.1` »
`3.10.14`)
- Updated the error handling in the updateOrCreateContactAndAccount
helper to work with the updated version of jsforce
This commit is contained in:
Eric
2026-02-17 17:17:24 -06:00
committed by GitHub
parent 3d4a3e1b87
commit be54839d3c
2 changed files with 2 additions and 2 deletions
@@ -408,7 +408,7 @@ module.exports = {
})// If Salesforce returns a duplicates_detected error message, use the first duplicate record returned in the error.
.tolerate({errorCode: 'DUPLICATES_DETECTED'}, (err)=>{
// Get the first matched duplicate record returned in the error returned by Salesforce.
let firstContactRecordMatchedByDuplicateRule = _.get(err, 'duplicateResult.matchResults[0].matchRecords[0].record.Id');
let firstContactRecordMatchedByDuplicateRule = _.get(err.data, 'duplicateResult.matchResults[0].matchRecords[0].record.Id');
if(firstContactRecordMatchedByDuplicateRule) {
duplicateContactWasFound = true;
return {id: firstContactRecordMatchedByDuplicateRule};
+1 -1
View File
@@ -10,7 +10,7 @@
"@sailshq/lodash": "^3.10.7",
"@sailshq/socket.io-redis": "^6.1.2",
"googleapis": "^165.0.0",
"jsforce": "1.11.1",
"jsforce": "3.10.14",
"jsonwebtoken": "9.0.2",
"jsrsasign": "11.1.0",
"moment": "2.29.4",