Skip to content

Commit

Permalink
fix: populateIp details
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishmalik authored Dec 19, 2023
1 parent b4e92b6 commit c719aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v0/destinations/factorsai/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const { ConfigCategories, mappingConfig, BASE_URL } = require('./config');
function populateIpDetails(requestJson, message) {
const payload = requestJson;
if (message.context && requestJson.context) {
payload.context.ip = message.context?.ip || message.request_ip;
payload.context.ip = message.context.ip || message.request_ip;
}

return payload;
Expand Down

0 comments on commit c719aa7

Please sign in to comment.