Skip to content

Commit

Permalink
fix(sf): add logs for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
emile-bex committed Oct 31, 2023
1 parent 20e656d commit 66bd4f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/external-services/salesforce/salesforce.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ export class SalesforceService {
if (
(err as SalesforceError).errorCode === ErrorCodes.UNABLE_TO_LOCK_ROW
) {
console.log('LOCK ROW IN findOrCreateLead');
return (await this.updateLead(
leadSfIdToUpdate,
lead,
Expand Down Expand Up @@ -1079,6 +1080,7 @@ export class SalesforceService {
if (
(err as SalesforceError).errorCode === ErrorCodes.UNABLE_TO_LOCK_ROW
) {
console.log('LOCK ROW IN createCampaignMemberInfoCo');
await this.findOrCreateCampaignMember(leadOrContactId, infoCoId);
}
console.error(err);
Expand Down

0 comments on commit 66bd4f6

Please sign in to comment.