From 2eeed33d8dba9069ea90ea4ed34b215731226e0a Mon Sep 17 00:00:00 2001 From: ujjwal-ab Date: Mon, 6 Nov 2023 09:40:40 +0530 Subject: [PATCH] fix(freshsales): stringify event before lowercase --- src/v0/destinations/freshsales/transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v0/destinations/freshsales/transform.js b/src/v0/destinations/freshsales/transform.js index cd7518a101..0007106d92 100644 --- a/src/v0/destinations/freshsales/transform.js +++ b/src/v0/destinations/freshsales/transform.js @@ -141,7 +141,7 @@ function eventMappingHandler(message, destination) { destination.ID, ); rudderEventsToFreshsalesEvents.forEach((mapping) => { - if (mapping.from.toLowerCase() === event.toLowerCase()) { + if (mapping.from.toLowerCase() === String(event).toLowerCase()) { mappedEvents.add(mapping.to); } });