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