Skip to content

Commit

Permalink
feat: add request_ip as fallback for mixpanel group call (#3421)
Browse files Browse the repository at this point in the history
feat: add request_ip as fallback for mixpanel
  • Loading branch information
Gauravudia authored Jun 6, 2024
1 parent 0710535 commit a73ab75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v0/destinations/mp/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit a73ab75

Please sign in to comment.