From a73ab75032d753b35cb0e18234dcd7289dd1e644 Mon Sep 17 00:00:00 2001 From: Gauravudia <60897972+Gauravudia@users.noreply.github.com> Date: Thu, 6 Jun 2024 12:57:07 +0530 Subject: [PATCH] feat: add request_ip as fallback for mixpanel group call (#3421) feat: add request_ip as fallback for mixpanel --- src/v0/destinations/mp/transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v0/destinations/mp/transform.js b/src/v0/destinations/mp/transform.js index 2065764b98..02eca8ed22 100644 --- a/src/v0/destinations/mp/transform.js +++ b/src/v0/destinations/mp/transform.js @@ -386,7 +386,7 @@ const processGroupEvents = (message, type, destination) => { $set: { [groupKey]: groupKeyVal, }, - $ip: get(message, 'context.ip'), + $ip: get(message, 'context.ip') || message.request_ip, }; if (destination?.Config.identityMergeApi === 'simplified') { payload.$distinct_id = message.userId || `$device:${message.anonymousId}`;