Skip to content

Commit

Permalink
fix(freshsales): stringify event before lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-ab committed Nov 6, 2023
1 parent dc1ca3f commit 2eeed33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v0/destinations/freshsales/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit 2eeed33

Please sign in to comment.