From cf243a60156aa33127667c85c40f5969378ad278 Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Tue, 17 Sep 2024 15:46:54 +0530 Subject: [PATCH] fix: remove response comparision typecast --- src/v0/destinations/salesforce/transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v0/destinations/salesforce/transform.js b/src/v0/destinations/salesforce/transform.js index fbe184add6..fa2bf69b18 100644 --- a/src/v0/destinations/salesforce/transform.js +++ b/src/v0/destinations/salesforce/transform.js @@ -134,7 +134,7 @@ async function getSaleforceIdForRecord( ); } const searchRecord = processedsfSearchResponse.response?.searchRecords?.find( - (rec) => typeof identifierValue !== 'undefined' && rec[identifierType] === `${identifierValue}`, + (rec) => typeof identifierValue !== 'undefined' && rec[identifierType] === identifierValue, ); return searchRecord?.Id;